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
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-logical-op-parentheses
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-logical-op-parentheses \
-Wno-deprecated-non-prototype
# 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-main \
-Wno-unused-parameter -Wno-unused-variable
-Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+1 -1
View File
@@ -85,7 +85,7 @@ CC= cc
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-implicit-int-conversion -Wno-poison-system-directories \
-Wno-unused-macros
-Wno-unused-macros -Wno-strict-prototypes
#
CWARN+= -Weverything
#
+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-parentheses -Wno-string-plus-int
-Wno-parentheses -Wno-string-plus-int -Wno-strict-prototypes
# Common C compiler warning flags
#
+4 -2
View File
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-comment
CSILENCE= -Wno-comment -Wno-deprecated-non-prototype -Wno-main -Wno-pedantic \
-Wno-return-type -Wno-strict-prototypes -Wno-unused-parameter
# Common C compiler warning flags
#
@@ -83,7 +84,8 @@ CC= cc
#
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-poison-system-directories
CSILENCE+= -Wno-poison-system-directories -Wno-comma -Wno-missing-prototypes \
-Wno-unused-macros
#
CWARN+= -Weverything
#