diff lib/hash-pjw.c @ 14612:6ef4f1f39105

Revert "use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE" This reverts commit 349d7fe0e307d59d508b3579317ee8d4eacfeb9c. Revert accidentally-pushed patch. Not yet ready.
author Jim Meyering <meyering@redhat.com>
date Mon, 25 Apr 2011 10:38:33 +0200 (2011-04-25)
parents b427a1938336
children 8250f2777afc
line wrap: on
line diff
--- a/lib/hash-pjw.c
+++ b/lib/hash-pjw.c
@@ -23,19 +23,11 @@
 
 #define SIZE_BITS (sizeof (size_t) * CHAR_BIT)
 
-/* The attribute __pure__ was added in gcc 2.96.  */
-#undef _GL_ATTRIBUTE_PURE
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
-# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
-#else
-# define _GL_ATTRIBUTE_PURE /* empty */
-#endif
-
 /* A hash function for NUL-terminated char* strings using
    the method described by Bruno Haible.
    See http://www.haible.de/bruno/hashfunc.html.  */
 
-size_t _GL_ATTRIBUTE_PURE
+size_t
 hash_pjw (const void *x, size_t tablesize)
 {
   const char *s;