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

+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-newline-eof
CSILENCE= -Wno-newline-eof -Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -1
View File
@@ -43,7 +43,8 @@ CSILENCE= -Wno-bitwise-op-parentheses -Wno-bool-operation \
-Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-incompatible-pointer-types -Wno-logical-not-parentheses \
-Wno-logical-op-parentheses -Wno-parentheses -Wno-shift-op-parentheses \
-Wno-sign-compare -Wno-unsequenced -Wno-unused-parameter
-Wno-sign-compare -Wno-unsequenced -Wno-unused-parameter \
-Wno-deprecated-non-prototype -Wno-return-type
# Common C compiler warning flags
#
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-implicit-int -Wno-pedantic
CSILENCE= -Wno-implicit-int -Wno-pedantic -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+5 -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
#
@@ -130,15 +130,19 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "This next step may take some time to complete:"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
hello: hello.lazy ${PROG}.c
@echo "This next step may take some time to complete:"
${CC} ${CFLAGS} -xc hello.lazy -o $@ ${LIBS}
echo: echo.lazy ${PROG}.c
@echo "This next step may take some time to complete:"
${CC} ${CFLAGS} -xc echo.lazy -o $@ ${LIBS}
tac: tac.lazy ${PROG}.c
@echo "This next step may take some time to complete:"
${CC} ${CFLAGS} -xc tac.lazy -o $@ ${LIBS}
# alternative executable
+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}
+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-main
-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-sign-compare
CSILENCE= -Wno-sign-compare -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= -Wno-bitwise-op-parentheses -Wno-parentheses
CSILENCE= -Wno-bitwise-op-parentheses -Wno-parentheses -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= -Wno-comment -Wno-empty-body
CSILENCE= -Wno-comment -Wno-empty-body -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-absolute-value -Wno-logical-op-parentheses -Wno-shift-op-parentheses
CSILENCE= -Wno-absolute-value -Wno-logical-op-parentheses -Wno-shift-op-parentheses \
-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= -Wno-string-plus-int
CSILENCE= -Wno-string-plus-int -Wno-strict-prototypes
# Common C compiler warning flags
#