diff lib/strerror-override.h @ 37209:f23811891fc5

fpending, obstack, strerror-override: use pure+const function attrs * lib/fpending.h (__fpending): Declare with the "pure" attribute. * lib/obstack.c (_obstack_allocated_p): Likewise. * lib/obstack.h (_obstack_memory_used): Likewise. (_obstack_memory_used): Likewise. * lib/strerror-override.h (strerror_override): Declare with the "const" attribute.
author Jim Meyering <meyering@fb.com>
date Mon, 30 Sep 2013 10:19:38 -0700
parents c741bc27922a
children 344018b6e5d7
line wrap: on
line diff
--- a/lib/strerror-override.h	Fri Oct 18 10:30:42 2013 -0600
+++ b/lib/strerror-override.h	Mon Sep 30 10:19:38 2013 -0700
@@ -48,7 +48,7 @@
      || GNULIB_defined_EOWNERDEAD \
      || GNULIB_defined_ENOTRECOVERABLE \
      || GNULIB_defined_EILSEQ
-extern const char *strerror_override (int errnum);
+extern const char *strerror_override (int errnum) _GL_ATTRIBUTE_CONST;
 # else
 #  define strerror_override(ignored) NULL
 # endif