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 -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