summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-12-14 14:28:47 +0100
committerJim Meyering <meyering@redhat.com>2011-12-14 15:07:57 +0100
commitc88c3b6b2ae94bf5d72a04dd4fb797cb386fcb07 (patch)
tree29b738b64bc0de5ca79b5bd43d0be3c79fa03463 /tests
parent439286a937c2ae02374e0389ed2ccd91240a8bd8 (diff)
downloaddiffutils-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 'tests')
-rwxr-xr-xtests/binary2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/binary b/tests/binary
index 02c71a3..d7b3943 100755
--- a/tests/binary
+++ b/tests/binary
@@ -11,7 +11,7 @@ printf '\0'|diff - /dev/null > out 2> err
# diff must exit with status 2, stdout as above, and no stderr.
test $? = 2 || fail=1
-compare out out-exp || fail=1
+compare out-exp out || fail=1
compare /dev/null err || fail=1
Exit $fail