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
+1
-1
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body
|
||||
CSILENCE= -Wno-empty-body -Wno-backslash-newline-escape
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ include ../../var.mk
|
||||
#
|
||||
CSILENCE= -Wno-comment -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-implicit-int -Wno-keyword-macro -Wno-pedantic -Wno-return-type \
|
||||
-Wno-unused-variable
|
||||
-Wno-unused-variable -Wno-deprecated-non-prototype
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -43,7 +43,7 @@ CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
|
||||
-Wno-implicit-function-declaration -Wno-extra-semi -Wno-implicit-int \
|
||||
-Wno-logical-op-parentheses -Wno-return-type -Wno-shift-op-parentheses \
|
||||
-Wno-unused-value -Wno-incompatible-pointer-types -Wno-int-conversion \
|
||||
-Wno-parentheses -Wno-misleading-indentation
|
||||
-Wno-parentheses -Wno-misleading-indentation -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -90,7 +90,8 @@ ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-format-nonliteral -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes -Wno-parentheses -Wno-misleading-indentation
|
||||
-Wno-strict-prototypes -Wno-parentheses -Wno-misleading-indentation \
|
||||
-Wno-shorten-64-to-32
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -86,7 +86,7 @@ ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-format-nonliteral -Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32
|
||||
-Wno-shorten-64-to-32 -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ include ../../var.mk
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-empty-body -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-parentheses \
|
||||
-Wno-pointer-sign -Wno-return-type
|
||||
-Wno-pointer-sign -Wno-return-type -Wno-deprecated-non-prototype
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+3
-2
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-pointer-sign -Wno-unused-parameter
|
||||
CSILENCE= -Wno-pointer-sign -Wno-unused-parameter -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +85,8 @@ ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-float-conversion -Wno-implicit-float-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-shadow -Wno-shorten-64-to-32
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user