From 5cb38ce3903b5c33750cd52f983a8f68f945c7dd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 9 Oct 2011 11:40:42 +0200 Subject: 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. --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common.h') 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 }; -- cgit v1.2.1