]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: port --enable-gcc-warnings to clang
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2013 00:49:32 +0000 (17:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2013 00:55:07 +0000 (17:55 -0700)
commit478dade09a4288f73e963b7f185ef9f73b681b42
treedf50bffa4c4d045b20ead3e3d945e39108088acc
parente605e40acf859eea2a1221d867ab3c086a1a1c15
maint: port --enable-gcc-warnings to clang

* configure.ac: If clang, add -Wno-format-extra-args and
-Wno-tautological-constant-out-of-range-compare.
* gl/lib/rand-isaac.c (ind):
* gl/lib/randread.c (readisaac):
* src/ls.c (dev_ino_push, dev_ino_pop):
* src/sort.c (buffer_linelim):
* src/system.h (is_nul):
* src/tail.c (tail_forever_inotify):
Rewrite to avoid casts that clang dislikes.
It's good to avoid casts anyway.
* src/expr.c (integer_overflow): Declare only if it exists.
(die): Remove; unused.
* src/ls.c (dev_ino_push): New function, replacing ...
(DEV_INO_PUSH): ... this removed macro.  All uses changed.
(decode_switches): Rewrite "str"+i to &str[i].
configure.ac
gl/lib/rand-isaac.c
gl/lib/randread.c
src/expr.c
src/ls.c
src/sort.c
src/system.h
src/tail.c