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:
Landon Curt Noll committed 2023-07-07 01:11:22 -07:00
1 parent f278341cde
commit d8425bb767
251 files changed
+461 -314

No files matched your search

+2 -1
View File
@@ -39,7 +39,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-char-subscripts -Wno-empty-body -Wno-long-long -Wno-parentheses \
-Wno-return-type -Wno-unsequenced -Wno-unused-parameter
-Wno-return-type -Wno-unsequenced -Wno-unused-parameter \
-Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -2
View File
@@ -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
#
+1 -1
View File
@@ -41,7 +41,7 @@ include ../../var.mk
CSILENCE= -Wno-bitwise-op-parentheses -Wno-implicit-int -Wno-int-conversion \
-Wno-logical-op-parentheses -Wno-overlength-strings -Wno-return-type \
-Wno-shift-op-parentheses -Wno-string-plus-int -Wno-unsequenced \
-Wno-unused-value
-Wno-unused-value -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE=
CSILENCE= -Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -1
View File
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
-Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-main
CSILENCE= -Wno-main -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -39,7 +39,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-main -Wno-pedantic -Wno-return-type
-Wno-main -Wno-pedantic -Wno-return-type -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+1 -1
View File
@@ -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
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-sign-compare
CSILENCE= -Wno-sign-compare -Wno-deprecated-non-prototype -Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -1
View File
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-parentheses
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-parentheses \
-Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-keyword-macro
CSILENCE= -Wno-keyword-macro -Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -1
View File
@@ -87,7 +87,8 @@ ifeq ($(CC),clang)
CSILENCE+= -Wno-c99-compat -Wno-comma -Wno-double-promotion -Wno-float-conversion \
-Wno-implicit-float-conversion -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-poison-system-directories \
-Wno-unreachable-code
-Wno-unreachable-code -Wno-c++98-compat -Wno-old-style-cast \
-Wno-zero-as-null-pointer-constant
#
CWARN+= -Weverything
#