diff options
author | Jim Meyering <meyering@fb.com> | 2013-09-30 10:19:38 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2013-10-19 09:19:37 -0700 |
commit | c2b08ae26cdc70a3acf7d1bc15bc77c92bbcc97c (patch) | |
tree | 200f30805d1195b5ae44cd2aac5c98a71fec4903 /lib/obstack.h | |
parent | 9f15e6702a27649a59263a7ed571805a979d9e70 (diff) | |
download | gnulib-c2b08ae26cdc70a3acf7d1bc15bc77c92bbcc97c.tar.gz |
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.
Diffstat (limited to 'lib/obstack.h')
-rw-r--r-- | lib/obstack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/obstack.h b/lib/obstack.h index 7cf98edbd2..da45427f86 100644 --- a/lib/obstack.h +++ b/lib/obstack.h @@ -183,7 +183,7 @@ extern int _obstack_begin (struct obstack *, int, int, extern int _obstack_begin_1 (struct obstack *, int, int, void *(*) (void *, long), void (*) (void *, void *), void *); -extern int _obstack_memory_used (struct obstack *); +extern int _obstack_memory_used (struct obstack *) _GL_ATTRIBUTE_PURE; /* The default name of the function for freeing a chunk is 'obstack_free', but gnulib users can override this by defining '__obstack_free'. */ |