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
+2
-2
@@ -40,7 +40,7 @@ include ../../var.mk
|
||||
#
|
||||
CSILENCE= -Wno-absolute-value -Wno-char-subscripts -Wno-dangling-else -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-implicit-int
|
||||
-Wno-shift-op-parentheses -Wno-implicit-int -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,7 +88,7 @@ ifeq ($(CC),clang)
|
||||
|
||||
CSILENCE+= -Wno-double-promotion -Wno-float-conversion -Wno-implicit-float-conversion \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-sign-conversion
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user