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

+4 -3
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
#
@@ -85,7 +85,8 @@ ifeq ($(CC),clang)
#
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-implicit-int-conversion \
-Wno-missing-prototypes -Wno-missing-variae-declarations \
-Wno-poison-system-directories -Wno-shadow
-Wno-poison-system-directories -Wno-shadow -Wno-missing-variable-declarations \
-Wno-unknown-warning-option
#
CWARN+= -Weverything
#
@@ -140,7 +141,7 @@ jpeg: jpeg.c
jpeg.jpg: jpeg
${RM} -f $@
@echo "This next step may take some time to run:"
@echo "This next step may take some time to complete:"
./jpeg > $@
check: ${DATA}