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-extra-semi
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-extra-semi \
-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-empty-body -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-int-to-pointer-cast -Wno-logical-op-parentheses
-Wno-int-to-pointer-cast -Wno-logical-op-parentheses -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-error -Wno-implicit-function-declaration
CSILENCE= -Wno-error -Wno-implicit-function-declaration -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-implicit-int -Dunix=1 \
-Wno-string-plus-int
-Wno-string-plus-int -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-implicit-int
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+2 -1
View File
@@ -40,7 +40,8 @@ include ../../var.mk
#
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
-Wno-incompatible-library-redeclaration -Wno-return-type -Wno-string-plus-int \
-Wno-unknown-escape-sequence -Wno-deprecated-declarations
-Wno-unknown-escape-sequence -Wno-deprecated-declarations \
-Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+4 -2
View File
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-for-loop-analysis -Wno-unused-value
CSILENCE= -Wno-for-loop-analysis -Wno-unused-value \
-Wno-deprecated-non-prototype -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-conditional-uninitialized
#
CWARN+= -Weverything
#