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
+4
-2
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-incompatible-library-redeclaration -Wno-main
|
||||
CSILENCE= -Wno-incompatible-library-redeclaration -Wno-main \
|
||||
-Wno-deprecated-non-prototype -Wno-format-security -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-strict-prototypes \
|
||||
-Wno-format-nonliteral -Wno-sign-conversion
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-shift-op-parentheses
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-shift-op-parentheses \
|
||||
-Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+2
-1
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-extra-semi -Wno-fortify-source -Wno-return-type
|
||||
CSILENCE= -Wno-extra-semi -Wno-fortify-source -Wno-return-type -Wno-strict-prototypes \
|
||||
-Wno-unused-variable
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-format -Wno-incompatible-library-redeclaration \
|
||||
-Wno-non-literal-null-conversion
|
||||
-Wno-non-literal-null-conversion -Wno-deprecated-non-prototype -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion \
|
||||
-Wno-logical-op-parentheses
|
||||
-Wno-logical-op-parentheses -Wno-deprecated-non-prototype
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body
|
||||
CSILENCE= -Wno-empty-body -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-extra-tokens \
|
||||
-Wno-overlength-strings
|
||||
-Wno-overlength-strings -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user