diff options
author | Jim Meyering <meyering@redhat.com> | 2011-10-09 11:40:42 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-14 16:34:45 +0100 |
commit | 5cb38ce3903b5c33750cd52f983a8f68f945c7dd (patch) | |
tree | 8860b967c0cb2ee11834cbb5c01988c44f9e1141 /src/common.h | |
parent | 5ca55b84143a840218bcdc78120b44b02d8ef561 (diff) | |
download | patch-5cb38ce3903b5c33750cd52f983a8f68f945c7dd.tar.gz |
build: update to latest gnulib and adapt
Mark functions as pure of const, per recommendations enabled by
new gcc -W options. Apply _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST.
* src/common.h: Apply new function attributes.
* src/pch.c: Likewise.
* src/pch.h: Likewise.
* src/util.c: Likewise.
* src/util.h: Likewise.
* configure.ac: Use -Wno-format-nonliteral.
* m4/.gitignore: Update.
* gnulib: Update to latest.
* cfg.mk: Exempt src/util.c from two tests, to avoid new
"make syntax-check" failures.
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 43919b8..38ecc99 100644 --- a/src/common.h +++ b/src/common.h @@ -202,7 +202,7 @@ XTERN lin out_offset; XTERN lin last_frozen_line; bool copy_till (struct outstate *, lin); -bool similar (char const *, size_t, char const *, size_t); +bool similar (char const *, size_t, char const *, size_t) _GL_ATTRIBUTE_PURE; #ifdef ENABLE_MERGE enum conflict_style { MERGE_MERGE, MERGE_DIFF3 }; |