silence compiler warnings for RHEL 9 Linux
We updated ${CSILENCE} Makefile variables for entries in an attempt to
minimize compiler warnings. This was tested using
gcc version 11.4.1 20230605 (Red Hat 11.4.1-2) (GCC).
TODO: Recheck macOS clang to see if any new warnings have occur
under macOS clang.
This commit is contained in:
1 parent
cbbf6dbf7a
commit
61172e5f88
313 files changed
+1609
-1063
No files matched your search
@@ -39,8 +39,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-empty-body -Wno-format \
|
||||
-Wno-format-security -Wno-gnu-zero-variadic-macro-arguments -Wno-main \
|
||||
-Wno-parentheses -Wno-implicit-function-declaration -Wno-strict-prototypes
|
||||
-Wno-format-security -Wno-gnu-zero-variadic-macro-arguments -Wno-main \
|
||||
-Wno-parentheses -Wno-implicit-function-declaration \
|
||||
-Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,7 +88,7 @@ ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-double-promotion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-shorten-64-to-32
|
||||
-Wno-shadow -Wno-shorten-64-to-32 -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
@@ -169,7 +170,7 @@ hello: hello.pdf
|
||||
@echo
|
||||
${CC} ${CFLAGS} -xc hello.pdf -o $@
|
||||
@echo
|
||||
./hello | ${CC} ${CFLAGS} -xc - -o hello2
|
||||
./hello | ${CC} ${CFLAGS} -xc - -o hello2
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user