From 787ba14c2926d45f9af94b28c06cfb50a22445dc Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sun, 30 Jun 2024 18:58:34 -0700 Subject: [PATCH] add use of CUNKNOWN --- Makefile.example | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile.example b/Makefile.example index d53f9982b..29fb2e1ab 100644 --- a/Makefile.example +++ b/Makefile.example @@ -24,13 +24,27 @@ TRUE= true # Common C compiler warnings to silence # -# Example: CSILENCE= -Wno-some-thing -Wno-another-thing -Wno-unknown-warning-option +# Example: CSILENCE= -Wno-some-thing -Wno-another-thing +# +# NOTE: If you add -Wno-stuff to CSILENCE, please update +# CUNKNOWN in the next section. +# +# NOTE: Please don't add -Wno-unknown-warning-option to CSILENCE. +# # CSILENCE= +# Attempt to silence unknown warnings +# +# If you add -Wno-stuff to CSILENCE, then please change CUNKNOWN to read: +# +# CUNKNOWN= -Wno-unknown-warning-option +# +CUNKNOWN= + # Common C compiler warning flags # -CWARN= -Wall -Wextra -pedantic ${CSILENCE} +CWARN= -Wall -Wextra -pedantic ${CSILENCE} ${CUNKNOWN} # The standard to compile against #