Mercurial > gnulib
changeset 37277:1bd4d1c6cbb4
freadable, fwritable, fwriting: declare with the "pure" attribute
* lib/freadable.h (freadable): Declare with the "pure" attribute.
* lib/fwritable.h (fwritable): Likewise.
* lib/fwriting.h (fwriting): Likewise.
Suggested by Bruno Haible.
author | Jim Meyering <meyering@fb.com> |
---|---|
date | Fri, 03 Jan 2014 17:17:27 -0800 |
parents | 49b2ef5a8659 |
children | f88e4870e728 |
files | ChangeLog lib/freadable.h lib/fwritable.h lib/fwriting.h |
diffstat | 4 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jan 03 16:58:50 2014 -0800 +++ b/ChangeLog Fri Jan 03 17:17:27 2014 -0800 @@ -1,5 +1,11 @@ 2014-01-03 Jim Meyering <meyering@fb.com> + freadable, fwritable, fwriting: declare with the "pure" attribute + * lib/freadable.h (freadable): Declare with the "pure" attribute. + * lib/fwritable.h (fwritable): Likewise. + * lib/fwriting.h (fwriting): Likewise. + Suggested by Bruno Haible. + maint.mk: adapt openat.h-include-without-use test * top/maint.mk (sc_prohibit_openat_without_use): Also check for FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
--- a/lib/freadable.h Fri Jan 03 16:58:50 2014 -0800 +++ b/lib/freadable.h Fri Jan 03 17:17:27 2014 -0800 @@ -33,7 +33,7 @@ extern "C" { # endif -extern bool freadable (FILE *stream); +extern bool freadable (FILE *stream) _GL_ATTRIBUTE_PURE; # ifdef __cplusplus }