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-deprecated-declarations
CSILENCE= -Wno-deprecated-declarations -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-format
CSILENCE= -Wno-format -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -42,7 +42,7 @@ CSILENCE= -Wno-bitwise-op-parentheses -Wno-conditional-type-mismatch \
-Wno-declaration-after-statement -Wno-dollar-in-identifier-extension \
-Wno-error -Wno-implicit-function-declaration \
-Wno-incompatible-pointer-types -Wno-int-conversion -Wno-parentheses \
-Wno-return-type
-Wno-return-type -Wno-strict-prototypes
# Common C compiler warning flags
#
+2 -2
View File
@@ -133,7 +133,7 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "This next compile may take a while to complete:"
@echo "This next step may take some time to run:"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
@@ -142,7 +142,7 @@ alt: data ${ALT_TARGET}
@${TRUE}
${PROG}.alt: ${PROG}.alt.c
@echo "This next compile may take a while to complete:"
@echo "This next step may take some time to run:"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# data files
+2 -1
View File
@@ -39,7 +39,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-pedantic -Wno-return-type -Wno-shift-op-parentheses -Wno-unsequenced
-Wno-pedantic -Wno-return-type -Wno-shift-op-parentheses -Wno-unsequenced \
-Wno-deprecated-non-prototype -Wno-main
# Common C compiler warning flags
#
+1 -1
View File
@@ -40,7 +40,7 @@ include ../../var.mk
#
CSILENCE= -Wno-bitwise-op-parentheses -Wno-char-subscripts -Wno-error \
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-main \
-Wno-pedantic
-Wno-pedantic -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+1 -1
View File
@@ -40,7 +40,7 @@ include ../../var.mk
#
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-empty-body -Wno-error \
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion \
-Wno-pedantic
-Wno-pedantic -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+1 -1
View File
@@ -41,7 +41,7 @@ include ../../var.mk
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
-Wno-conditional-type-mismatch -Wno-error \
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion \
-Wno-pointer-type-mismatch -Wno-unsequenced
-Wno-pointer-type-mismatch -Wno-unsequenced -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+1 -1
View File
@@ -42,7 +42,7 @@ CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
-Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-incompatible-pointer-types -Wno-int-conversion \
-Wno-logical-op-parentheses -Wno-parentheses -Wno-shift-op-parentheses \
-Wno-main
-Wno-main -Wno-deprecated-non-prototype
# Common C compiler warning flags
#