aboutsummaryrefslogtreecommitdiffstats
path: root/include/strings.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-01 21:07:54 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-01 21:07:54 +0200
commitac044784a6ce64ff15610d4b70750065a7f01b80 (patch)
tree8ac8629c0089099f21be9107a5d3779963d33ca0 /include/strings.h
parentadd memfrob (diff)
downloadslibc-ac044784a6ce64ff15610d4b70750065a7f01b80.tar.gz
slibc-ac044784a6ce64ff15610d4b70750065a7f01b80.tar.bz2
slibc-ac044784a6ce64ff15610d4b70750065a7f01b80.tar.xz
start on makefile and fixing warnings and errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/strings.h')
-rw-r--r--include/strings.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/strings.h b/include/strings.h
index 2044fa6..a06a167 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -64,7 +64,7 @@ void bcopy(const void*, void*, size_t)
*/
int bcmp(const void*, const void*, size_t)
__deprecated("Use 'memcmp' instead.")
- __GCC_ONLY(__attribute__((warn_unused_result)));
+ __GCC_ONLY(__attribute__((warn_unused_result, pure)));
/**
@@ -78,7 +78,7 @@ int bcmp(const void*, const void*, size_t)
* see the specifications for `a` and `b`.
*/
int strcasecmp(const char*, const char*)
- __GCC_ONLY(__attribute__((warn_unused_result, nonnull)));
+ __GCC_ONLY(__attribute__((warn_unused_result, nonnull, pure)));
/**
* Compare two strings alphabetically in a case insensitive manner.
@@ -92,7 +92,7 @@ int strcasecmp(const char*, const char*)
* see the specifications for `a` and `b`.
*/
int strncasecmp(const char*, const char*, size_t)
- __GCC_ONLY(__attribute__((warn_unused_result, nonnull)));
+ __GCC_ONLY(__attribute__((warn_unused_result, nonnull, pure)));
/**
@@ -102,7 +102,7 @@ int strncasecmp(const char*, const char*, size_t)
*/
char* index(const char*, int)
__deprecated("Use 'strchr' instead.")
- __GCC_ONLY(__attribute__((warn_unused_result, nonnull)));
+ __GCC_ONLY(__attribute__((warn_unused_result, nonnull, pure)));
/**
* This function is identical to `strrchr`.
@@ -111,7 +111,7 @@ char* index(const char*, int)
*/
char* rindex(const char*, int)
__deprecated("Use 'strrchr' instead.")
- __GCC_ONLY(__attribute__((warn_unused_result, nonnull)));
+ __GCC_ONLY(__attribute__((warn_unused_result, nonnull, pure)));