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

+3 -1
View File
@@ -85,7 +85,9 @@ CC= cc
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-bad-function-cast -Wno-comma -Wno-missing-variable-declarations \
-Wno-shift-sign-overflow -Wno-unknown-warning-option -Wno-poison-system-directories
-Wno-shift-sign-overflow -Wno-unknown-warning-option -Wno-poison-system-directories \
-Wno-cast-align -Wno-missing-prototypes -Wno-shorten-64-to-32 \
-Wno-unreachable-code -Wno-unreachable-code-return
#
CWARN+= -Weverything
#
+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-return-type
-Wno-return-type -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+4 -1
View File
@@ -83,7 +83,9 @@ CC= cc
#
ifeq ($(CC),clang)
#
#CSILENCE+=
CSILENCE+= -Wno-format-nonliteral -Wno-implicit-int-conversion -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-poison-system-directories \
-Wno-shorten-64-to-32 -Wno-sign-conversion
#
CWARN+= -Weverything
#
@@ -129,6 +131,7 @@ all: data ${TARGET}
build/${PROG}: src
${RM} -rf build
${CP} -v -r src build
@echo "This next step may take some time to complete:"
cd build; CFLAGS="${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}" \
LDFLAGS="${LIBS}" \
CC="${CC}" \
+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-absolute-value -Wno-keyword-macro
CSILENCE= -Wno-absolute-value -Wno-keyword-macro -Wno-newline-eof
# Common C compiler warning flags
#
+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-parentheses
-Wno-main -Wno-parentheses -Wno-deprecated-non-prototype
# Common C compiler warning flags
#
+2 -1
View File
@@ -38,7 +38,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-parentheses -Wno-pointer-sign -Wno-incompatible-pointer-types
CSILENCE= -Wno-parentheses -Wno-pointer-sign -Wno-incompatible-pointer-types \
-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-empty-body -Wno-int-conversion -Wno-unused-value
CSILENCE= -Wno-empty-body -Wno-int-conversion -Wno-unused-value -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -39,7 +39,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-deprecated-declarations -Wno-error -Wno-implicit-function-declaration \
-Wno-format-extra-args
-Wno-format-extra-args -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-unsequenced -Wno-unused-value
CSILENCE= -Wno-unsequenced -Wno-unused-value -Wno-strict-prototypes
# Common C compiler warning flags
#
+1 -1
View File
@@ -83,7 +83,7 @@ CC= cc
#
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-poison-system-directories
CSILENCE+= -Wno-poison-system-directories -Wno-unused-macros
#
CWARN+= -Weverything
#