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:
1 parent
f278341cde
commit
d8425bb767
251 files changed
+461
-314
No files matched your search
@@ -85,7 +85,8 @@ ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-missing-noreturn -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-trigraphs -Wno-unused-macros -Wno-shorten-64-to-32
|
||||
-Wno-trigraphs -Wno-unused-macros -Wno-shorten-64-to-32 \
|
||||
-Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -39,7 +39,7 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-parentheses
|
||||
-Wno-parentheses -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body -Wno-parentheses -Wno-string-plus-int
|
||||
CSILENCE= -Wno-empty-body -Wno-parentheses -Wno-string-plus-int -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+3
-2
@@ -41,7 +41,8 @@ include ../../var.mk
|
||||
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
|
||||
-Wno-deprecated-declarations -Wno-format -Wno-parentheses \
|
||||
-Wno-shift-op-parentheses -Wno-sign-compare -Wno-unused-variable \
|
||||
-Wno-main-return-type -Wno-return-type -Wno-unused-parameter
|
||||
-Wno-main-return-type -Wno-return-type -Wno-unused-parameter \
|
||||
-Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -89,7 +90,7 @@ ifeq ($(CC),clang)
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-conditional-uninitialized \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-missing-noreturn
|
||||
-Wno-sign-conversion -Wno-missing-noreturn -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-1
@@ -86,7 +86,9 @@ CC= cc
|
||||
#
|
||||
ifeq ($(CC),clang)
|
||||
#
|
||||
#CSILENCE+=
|
||||
CSILENCE+= -Wno-bad-function-cast -Wno-comma -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-shadow \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-empty-body
|
||||
CSILENCE= -Wno-empty-body -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -86,7 +86,7 @@ ifeq ($(CC),clang)
|
||||
CSILENCE+= -Wno-cast-align -Wno-comma -Wno-double-promotion -Wno-format-nonliteral \
|
||||
-Wno-implicit-float-conversion -Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations -Wno-poison-system-directories \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes
|
||||
-Wno-sign-conversion -Wno-strict-prototypes -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ include ../../var.mk
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||
-Wno-incompatible-function-pointer-types -Wno-logical-op-parentheses \
|
||||
-Wno-sign-compare -Wno-tautological-bitwise-compare -Wno-unused-label \
|
||||
-Wno-unused-variable
|
||||
-Wno-unused-variable -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -88,7 +88,7 @@ ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-conditional-uninitialized -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion
|
||||
-Wno-sign-conversion -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+2
-3
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -84,8 +84,7 @@ CC= cc
|
||||
ifeq ($(CC),clang)
|
||||
#
|
||||
CSILENCE+= -Wno-comma -Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion \
|
||||
-Wno-strict-prototypes
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-sign-conversion
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+3
-2
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-for-loop-analysis -Wno-missing-field-initializers
|
||||
CSILENCE= -Wno-for-loop-analysis -Wno-missing-field-initializers -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -87,7 +87,8 @@ CSILENCE+= -Wno-double-promotion -Wno-float-conversion -Wno-format-nonliteral \
|
||||
-Wno-implicit-float-conversion -Wno-implicit-int-conversion \
|
||||
-Wno-missing-prototypes -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shadow -Wno-shorten-64-to-32 \
|
||||
-Wno-sign-conversion -Wno-strict-prototypes -Wno-vla
|
||||
-Wno-sign-conversion -Wno-strict-prototypes -Wno-vla \
|
||||
-Wno-conditional-uninitialized -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
@@ -87,7 +87,7 @@ ifeq ($(CC),clang)
|
||||
CSILENCE+= -Wno-comma -Wno-conditional-uninitialized -Wno-date-time \
|
||||
-Wno-implicit-int-conversion -Wno-missing-variable-declarations \
|
||||
-Wno-poison-system-directories -Wno-shorten-64-to-32 -Wno-sign-conversion \
|
||||
-Wno-unreachable-code
|
||||
-Wno-unreachable-code -Wno-declaration-after-statement
|
||||
#
|
||||
CWARN+= -Weverything
|
||||
#
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ include ../../var.mk
|
||||
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE=
|
||||
CSILENCE= -Wno-strict-prototypes
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user