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
@@ -86,7 +86,8 @@ ifeq ($(CC),clang)
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-float-equal -Wno-format-nonliteral \
-Wno-implicit-float-conversion -Wno-missing-prototypes \
-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
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-unsequenced
CSILENCE= -Wno-unsequenced -Wno-self-assign -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -40,7 +40,7 @@ include ../../var.mk
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-logical-op-parentheses -Wno-main -Wno-parentheses -Wno-pedantic \
-Wno-return-type -Wno-shift-op-parentheses
-Wno-return-type -Wno-shift-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-char-subscripts -Wno-error -Wno-implicit-function-declaration \
-Wno-implicit-int -Wno-main
-Wno-implicit-int -Wno-main -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-shift-op-parentheses -Wno-unused-value
CSILENCE= -Wno-shift-op-parentheses -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 -2
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
#
@@ -83,7 +83,7 @@ CC= cc
#
ifeq ($(CC),clang)
#
#CSILENCE+=
CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories
#
CWARN+= -Weverything
#
+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
@@ -84,7 +84,7 @@ CC= cc
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-poison-system-directories -Wno-float-conversion -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-padded
-Wno-missing-variable-declarations -Wno-padded -Wno-declaration-after-statement
#
CWARN+= -Weverything
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-absolute-value
CSILENCE= -Wno-absolute-value -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-gnu-empty-initializer -Wno-missing-field-initializers
CSILENCE= -Wno-gnu-empty-initializer -Wno-missing-field-initializers \
-Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -2
View File
@@ -39,7 +39,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-comment -Wno-dollar-in-identifier-extension -Wno-string-plus-int \
-Wno-unused-parameter
-Wno-unused-parameter -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
@@ -87,7 +87,7 @@ ifeq ($(CC),clang)
CSILENCE+= -Wno-comma -Wno-date-time -Wno-float-conversion \
-Wno-implicit-float-conversion -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-poison-system-directories \
-Wno-shadow -Wno-sign-conversion
-Wno-shadow -Wno-sign-conversion -Wno-declaration-after-statement
#
CWARN+= -Weverything
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE=
CSILENCE= -Wno-deprecated-non-prototype -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
#