From 76f92d5a06b686a56dc534d9cbc74489b8b73390 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 27 Dec 2015 20:02:48 +0100 Subject: fix a few errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/alloca.h | 2 +- include/string.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/alloca.h b/include/alloca.h index 49d8879..4c9db33 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -72,7 +72,7 @@ void* alloca(size_t); * @since Always. */ void (needstack)(int); -# elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) +# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) # define needstack(n) __needstack(n, __FILE__, __LINE__, __func__) # else # define needstack(n) __needstack(n, __FILE__, __LINE__, NULL) diff --git a/include/string.h b/include/string.h index 8369f30..758ca6e 100644 --- a/include/string.h +++ b/include/string.h @@ -293,7 +293,7 @@ void* memcmove(void*, const void*, int, size_t); * * @since Always. */ -char* strset(char* str, int c); +char* strset(char* str, int c) __GCC_ONLY(__attribute__((__returns_nonnull__, __nonnull__))); #endif -- cgit v1.2.3-70-g09d2