diff options
author | Jim Meyering <meyering@redhat.com> | 2011-12-14 14:28:47 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-14 15:07:57 +0100 |
commit | c88c3b6b2ae94bf5d72a04dd4fb797cb386fcb07 (patch) | |
tree | 29b738b64bc0de5ca79b5bd43d0be3c79fa03463 /lib/cmpbuf.h | |
parent | 439286a937c2ae02374e0389ed2ccd91240a8bd8 (diff) | |
download | diffutils-c88c3b6b2ae94bf5d72a04dd4fb797cb386fcb07.tar.gz |
build: update to latest gnulib and adapt
* tests/binary: Reverse arguments to compare to avoid failure of
new syntax-check rule.
* configure.ac: Use -Wno-format-nonliteral.
Mark functions as pure of const, per recommendations enabled by
new gcc -W options. Use _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST.
* lib/cmpbuf.h (buffer_lcm, block_compare):
Apply pure and/or const attributes.
* src/cmp.c (block_compare): Likewise.
* src/context.c (find_hunk): Likewise.
* src/diff.h (lines_differ): Likewise.
* src/diff3.c (skipwhite): Likewise.
* src/dir.c (dir_loop): Likewise.
* src/util.c (find_change, find_reverse_change): Likewise.
(translate_line_number): Likewise.
Diffstat (limited to 'lib/cmpbuf.h')
-rw-r--r-- | lib/cmpbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmpbuf.h b/lib/cmpbuf.h index 2296766..c19c2bb 100644 --- a/lib/cmpbuf.h +++ b/lib/cmpbuf.h @@ -16,4 +16,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ size_t block_read (int, char *, size_t); -size_t buffer_lcm (size_t, size_t, size_t); +size_t buffer_lcm (size_t, size_t, size_t) _GL_ATTRIBUTE_CONST; |