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

+5 -2
View File
@@ -40,7 +40,8 @@ include ../../var.mk
#
CSILENCE= -Wno-builtin-requires-header -Wno-char-subscripts -Wno-conditional-type-mismatch \
-Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
-Wno-incompatible-library-redeclaration -Wno-parentheses -Wno-implicit-int
-Wno-incompatible-library-redeclaration -Wno-parentheses -Wno-implicit-int \
-Wno-deprecated-non-prototype -Wno-return-type -Wno-strict-prototypes
# Common C compiler warning flags
#
@@ -85,7 +86,9 @@ CC= cc
#
ifeq ($(CC),clang)
#
#CSILENCE+=
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
-Wno-unreachable-code-return
#
CWARN+= -Weverything
#