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
+9
-7
@@ -39,8 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-implicit-int -Wno-return-type -Wno-unused-parameter \
|
||||
-Wno-deprecated-non-prototype
|
||||
-Wno-implicit-int -Wno-return-type -Wno-unused-parameter \
|
||||
-Wno-deprecated-non-prototype -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,11 +86,13 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-conditional-uninitialized -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-format-nonliteral \
|
||||
-Wno-implicit-int -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-redundant-parens -Wno-return-type -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-strict-prototypes -Wno-pedantic
|
||||
-Wno-implicit-function-declaration -Wno-format-nonliteral \
|
||||
-Wno-implicit-int -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-redundant-parens -Wno-return-type -Wno-shadow \
|
||||
-Wno-shorten-64-to-32 -Wno-strict-prototypes -Wno-pedantic \
|
||||
-Wno-extra-semi-stmt -Wno-misleading-indentation \
|
||||
-Wno-reserved-identifier -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,8 +38,9 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-logical-op-parentheses \
|
||||
-Wno-unused-parameter
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-logical-op-parentheses -Wno-unused-parameter \
|
||||
-Wno-misleading-indentation -Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,10 +86,11 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-implicit-int-conversion -Wno-logical-op-parentheses \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion -Wno-unused-parameter \
|
||||
-Wno-unreachable-code-return
|
||||
-Wno-implicit-int-conversion -Wno-logical-op-parentheses \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-sign-conversion \
|
||||
-Wno-unused-parameter -Wno-unreachable-code-return \
|
||||
-Wno-extra-semi-stmt -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,8 +39,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-format-extra-args \
|
||||
-Wno-implicit-int -Wno-main -Wno-deprecated-non-prototype
|
||||
-Wno-implicit-function-declaration -Wno-format-extra-args \
|
||||
-Wno-implicit-int -Wno-main -Wno-deprecated-non-prototype \
|
||||
-Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,7 +87,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-pedantic -Wno-poison-system-directories
|
||||
-Wno-pedantic -Wno-poison-system-directories
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-4
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,9 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-conditional-uninitialized -Wno-double-promotion \
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-implicit-int -Wno-unsequenced -Wno-strict-prototypes
|
||||
CSILENCE= -Wno-implicit-int -Wno-unsequenced -Wno-strict-prototypes \
|
||||
-Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-double-promotion -Wno-implicit-float-conversion \
|
||||
-Wno-poison-system-directories -Wno-declaration-after-statement
|
||||
-Wno-poison-system-directories -Wno-declaration-after-statement \
|
||||
-Wno-misleading-indentation -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bool-operation -Wno-char-subscripts -Wno-format-security \
|
||||
-Wno-logical-op-parentheses
|
||||
-Wno-logical-op-parentheses -Wno-format-overflow -Wno-parentheses \
|
||||
-Wno-restrict -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-format-nonliteral -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-string-conversion -Wno-unreachable-code
|
||||
-Wno-poison-system-directories -Wno-string-conversion -Wno-unreachable-code \
|
||||
-Wno-unknown-warning-option -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+10
-7
@@ -38,10 +38,12 @@ 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-int-to-pointer-cast \
|
||||
-Wno-pedantic -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-return-type \
|
||||
-Wno-unused-but-set-parameter -Wno-unused-value -Wno-deprecated-non-prototype
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion \
|
||||
-Wno-int-to-pointer-cast -Wno-pedantic -Wno-pointer-sign \
|
||||
-Wno-pointer-to-int-cast -Wno-return-type -Wno-unused-but-set-parameter \
|
||||
-Wno-unused-value -Wno-deprecated-non-prototype \
|
||||
-Wno-builtin-declaration-mismatch -Wno-parentheses
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,9 +89,10 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-array-bounds-pointer-arithmetic -Wno-comma -Wno-format-nonliteral \
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-implicit-int-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-strict-prototypes -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-empty-body -Wno-parentheses -Wno-shift-op-parentheses \
|
||||
-Wno-unused-value -Wno-strict-prototypes
|
||||
-Wno-unused-value -Wno-strict-prototypes -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-strict-prototypes \
|
||||
-Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-sign-conversion \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+4
-2
@@ -38,7 +38,8 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bool-operation -Wno-keyword-macro -Wno-literal-conversion
|
||||
CSILENCE= -Wno-bool-operation -Wno-keyword-macro -Wno-literal-conversion \
|
||||
-Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,7 +85,8 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-disabled-macro-expansion -Wno-float-conversion \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+5
-3
@@ -39,8 +39,9 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-parentheses \
|
||||
-Wno-pedantic -Wno-unsequenced -Wno-deprecated-non-prototype
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int -Wno-parentheses \
|
||||
-Wno-pedantic -Wno-unsequenced -Wno-deprecated-non-prototype \
|
||||
-Wno-builtin-declaration-mismatch -Wno-sequence-point -Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,7 +86,8 @@ CC= cc
|
||||
#
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-poison-system-directories
|
||||
CSILENCE+= -Wno-poison-system-directories -Wno-unknown-warning-option \
|
||||
-Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-parentheses \
|
||||
-Wno-incompatible-pointer-types
|
||||
-Wno-incompatible-pointer-types -Wno-implicit-fallthrough
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -85,9 +85,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-cast-align -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-undef -Wno-alloca
|
||||
-Wno-pedantic -Wno-poison-system-directories -Wno-shadow \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-strict-prototypes \
|
||||
-Wno-undef -Wno-alloca -Wno-cast-function-type-strict -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+10
-8
@@ -39,10 +39,11 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-empty-body -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-incompatible-pointer-types -Wno-int-conversion -Wno-parentheses \
|
||||
-Wno-return-type -Wno-shift-op-parentheses -Wno-unsequenced \
|
||||
-Wno-deprecated-non-prototype
|
||||
-Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-incompatible-pointer-types -Wno-int-conversion -Wno-parentheses \
|
||||
-Wno-return-type -Wno-shift-op-parentheses -Wno-unsequenced \
|
||||
-Wno-deprecated-non-prototype -Wno-builtin-declaration-mismatch \
|
||||
-Wno-misleading-indentation -Wno-sequence-point
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -98,10 +99,11 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-disabled-macro-expansion -Wno-double-promotion \
|
||||
-Wno-float-conversion -Wno-implicit-float-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-float-conversion -Wno-implicit-float-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes -Wno-unsafe-buffer-usage \
|
||||
-Wno-unknown-warning-option
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion
|
||||
-Wno-shorten-64-to-32 -Wno-sign-conversion -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-cpp -Wno-misleading-indentation
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,9 +84,9 @@ CC= cc
|
||||
ifeq "$(findstring $(CLANG),${CC})" "$(CLANG)"
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-double-promotion -Wno-float-conversion \
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-strict-prototypes
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-shadow -Wno-strict-prototypes -Wno-unsafe-buffer-usage
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user