Suppress some unhelpful warnings when using clang.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 23 Sep 2013 07:12:01 +0000 (09:12 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 23 Sep 2013 07:12:01 +0000 (09:12 +0200)
commit8762e52438d46d81e518179e4f9bd8a939463ddb
tree33a25414302599a9dbe3d2a4144927e128f57af1
parent332153538c3268edb9154fbe29a6fdc5e012e595
Suppress some unhelpful warnings when using clang.

* configure.ac: With clang, check for and use -Wno-switch,
-Wno-tautological-constant-out-of-range-compare and -Wno-pointer-sign.

* conf_post.h(assume): Use __builtin_unreachable for clang.

* src/filelock.c (lock_file_1): Rearrange to remove compiler warning
about excess arguments to snprintf.
ChangeLog
configure.ac
src/ChangeLog
src/conf_post.h
src/filelock.c