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-deprecated-declarations -Wno-implicit-int \
-Wno-logical-op-parentheses -Wno-return-type -Wno-unsequenced
-Wno-logical-op-parentheses -Wno-return-type -Wno-unsequenced \
-Wno-deprecated-non-prototype -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-return-type -Wno-unsequenced
-Wno-return-type -Wno-unsequenced -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= -Wno-format -Wno-parentheses -Wno-string-plus-int
CSILENCE= -Wno-format -Wno-parentheses -Wno-string-plus-int -Wno-strict-prototypes
# Common C compiler warning flags
#
+3 -2
View File
@@ -38,8 +38,9 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-absolute-value -Wno-implicit-int \
-Wno-incompatible-function-pointer-types -Wno-unsequenced
CSILENCE= -Wno-absolute-value -Wno-implicit-int -Wno-deprecated-non-prototype \
-Wno-incompatible-function-pointer-types -Wno-unsequenced \
-Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -1
View File
@@ -39,7 +39,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
-Wno-implicit-int -Wno-main-return-type -Wno-extra-semi
-Wno-implicit-int -Wno-main-return-type -Wno-extra-semi \
-Wno-strict-prototypes
# Common C compiler warning flags
#
+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-error \
-Wno-implicit-function-declaration -Wno-implicit-int
-Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+1 -1
View File
@@ -85,7 +85,7 @@ CC= cc
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-comma -Wno-missing-variable-declarations -Wno-pedantic \
-Wno-poison-system-directories
-Wno-poison-system-directories -Wno-missing-prototypes
#
CWARN+= -Weverything
#
+1 -1
View File
@@ -40,7 +40,7 @@ include ../../var.mk
#
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
-Wno-incompatible-pointer-types -Wno-parentheses -Wno-return-type \
-Wno-unevaluated-expression
-Wno-unevaluated-expression -Wno-deprecated-non-prototype -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -40,7 +40,7 @@ include ../../var.mk
#
CSILENCE= -Wno-bitwise-op-parentheses -Wno-error -Wno-implicit-function-declaration \
-Wno-format-security -Wno-parentheses -Wno-shift-negative-value \
-Wno-shift-op-parentheses
-Wno-shift-op-parentheses -Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -1
View File
@@ -83,7 +83,8 @@ CC= cc
#
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories
CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories \
-Wno-shorten-64-to-32 -Wno-sign-conversion
#
CWARN+= -Weverything
#
+2 -1
View File
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-empty-body -Wno-implicit-int -Wno-unsequenced
CSILENCE= -Wno-empty-body -Wno-implicit-int -Wno-unsequenced \
-Wno-deprecated-non-prototype -Wno-unused-parameter
# Common C compiler warning flags
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-comment
CSILENCE= -Wno-comment -Wno-strict-prototypes
# Common C compiler warning flags
#