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,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-unused-parameter \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-strict-prototypes -Wno-builtin-declaration-mismatch \
|
||||
-Wno-misleading-indentation -Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,9 +86,11 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-float-conversion -Wno-float-equal \
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-sign-conversion -Wno-strict-prototypes -Wno-unused-macros
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-unused-macros -Wno-extra-semi-stmt -Wno-unsafe-buffer-usage \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-constant-conversion -Wno-implicit-int -Wno-string-plus-char \
|
||||
-Wno-unused-value
|
||||
-Wno-unused-value -Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,8 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-implicit-int-conversion \
|
||||
-Wno-poison-system-directorie -Wno-unknown-warning-option \
|
||||
-Wno-poison-system-directories
|
||||
-Wno-poison-system-directorie -Wno-unknown-warning-option \
|
||||
-Wno-poison-system-directories -Wno-extra-semi-stmt \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-3
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-dangling-else -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-dangling-else -Wno-strict-prototypes -Wno-cpp -Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +84,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -84,8 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-conversion -Wno-double-promotion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-unreachable-code-return
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-unreachable-code-return -Wno-extra-semi-stmt \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-parentheses -Wno-empty-body -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-parentheses -Wno-empty-body -Wno-strict-prototypes \
|
||||
-Wno-format-overflow -Wno-int-in-bool-context -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-format-nonliteral -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-float-conversion -Wno-implicit-int-conversion
|
||||
-Wno-poison-system-directories -Wno-float-conversion \
|
||||
-Wno-implicit-int-conversion -Wno-extra-semi-stmt \
|
||||
-Wno-unknown-warning-option -Wno-unsafe-buffer-usage \
|
||||
-Wno-extra-semi-stmt -Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-unused-value
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-unused-value \
|
||||
-Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-missing-noreturn \
|
||||
-Wno-unreachable-code
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-missing-noreturn \
|
||||
-Wno-unreachable-code -Wno-disabled-macro-expansion \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
+9
-7
@@ -39,9 +39,11 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-format-extra-args \
|
||||
-Wno-implicit-int -Wno-missing-field-initializers \
|
||||
-Wno-non-literal-null-conversion -Wno-return-type -Wno-shift-op-parentheses \
|
||||
-Wno-unused-parameter -Wno-deprecated-non-prototype
|
||||
-Wno-implicit-int -Wno-missing-field-initializers \
|
||||
-Wno-non-literal-null-conversion -Wno-return-type \
|
||||
-Wno-shift-op-parentheses -Wno-unused-parameter \
|
||||
-Wno-deprecated-non-prototype -Wno-misleading-indentation \
|
||||
-Wno-parentheses -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,10 +89,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-format-nonliteral -Wno-implicit-int-conversion \
|
||||
-Wno-keyword-macro -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-string-conversion
|
||||
-Wno-keyword-macro -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-padded -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-strict-prototypes \
|
||||
-Wno-string-conversion -Wno-extra-semi-stmt -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-4
@@ -38,9 +38,9 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-implicit-int -Wno-int-conversion -Wno-pointer-to-int-cast \
|
||||
-Wno-deprecated-non-prototype
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-error
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion
|
||||
-Wno-pointer-to-int-cast -Wno-deprecated-non-prototype
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,7 +86,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories
|
||||
-Wno-poison-system-directories
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+5
-4
@@ -39,9 +39,10 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
|
||||
-Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-int-conversion -Wno-parentheses -Wno-pointer-to-int-cast \
|
||||
-Wno-shift-op-parentheses -Wno-deprecated-non-prototype
|
||||
-Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-int-conversion -Wno-parentheses -Wno-pointer-to-int-cast \
|
||||
-Wno-shift-op-parentheses -Wno-deprecated-non-prototype \
|
||||
-Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,7 +88,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories
|
||||
-Wno-poison-system-directories -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-empty-body -Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +84,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-disabled-macro-expansion -Wno-misleading-indentation \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+9
-6
@@ -39,9 +39,11 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-conditional-type-mismatch -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-incompatible-pointer-types \
|
||||
-Wno-int-conversion -Wno-main -Wno-return-type -Wno-unused-parameter \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int
|
||||
-Wno-implicit-function-declaration -Wno-incompatible-pointer-types \
|
||||
-Wno-int-conversion -Wno-main -Wno-return-type -Wno-unused-parameter \
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int \
|
||||
-Wno-builtin-declaration-mismatch -Wno-missing-parameter-type \
|
||||
-Wno-parentheses -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,9 +89,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-strict-prototypes -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-2
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-pointer-sign
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-pointer-sign -Wno-parentheses \
|
||||
-Wno-sign-compare
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,9 +39,11 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-constant-conversion -Wno-format-security \
|
||||
-Wno-incompatible-function-pointer-types -Wno-int-conversion \
|
||||
-Wno-missing-braces -Wno-non-literal-null-conversion -Wno-pointer-sign \
|
||||
-Wno-pointer-to-int-cast -Wno-self-assign -Wno-unused-parameter
|
||||
-Wno-incompatible-function-pointer-types -Wno-int-conversion \
|
||||
-Wno-missing-braces -Wno-non-literal-null-conversion \
|
||||
-Wno-pointer-sign \Wno-pointer-to-int-cast -Wno-self-assign \
|
||||
-Wno-unused-parameter -Wno-incompatible-pointer-types -Wno-overflow \
|
||||
-Wno-pointer-to-int-cast -Wno-strict-aliasing
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,8 +89,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-bad-function-cast -Wno-cast-align -Wno-comma -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow
|
||||
-Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user