silence warnings under macOS for cc, clang and gcc
Used the following script to check for warnings
not silenced via ${CSILENCE}:
```sh
find ???? -mindepth 1 -maxdepth 1 -type d | while read dir; do
(cd "$dir"; echo =-=-= "$dir" =-=-= ; csilence -v 1 clobber all ; echo ; csilence -v 1 clobber alt)
done 2>&1 | less
```
This commit is contained in:
1 parent
f278341cde
commit
d8425bb767
251 files changed
+461
-314
No files matched your search
@@ -43,7 +43,8 @@ CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-error \
|
||||
-Wno-int-to-pointer-cast -Wno-macro-redefined -Wno-pedantic \
|
||||
-Wno-pointer-to-int-cast -Wno-return-type -Wno-string-plus-int \
|
||||
-Wno-bitwise-op-parentheses -Wno-format -Wno-format-extra-args \
|
||||
-Wno-int-conversion -Wno-unused-parameter -Wno-unsequenced
|
||||
-Wno-int-conversion -Wno-unused-parameter -Wno-unsequenced \
|
||||
-Wno-deprecated-non-prototype -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -91,7 +92,7 @@ ifeq ($(CC),clang)
|
||||
CSILENCE+= -Wno-bad-function-cast -Wno-comma -Wno-format-nonliteral \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-unused-macros -Wno-shorten-64-to-32
|
||||
-Wno-unused-macros -Wno-shorten-64-to-32 -Wno-sign-conversion
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user