From 1dcb5383319a2e41969234d838a20f6a4316334e Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Thu, 29 Feb 2024 02:41:59 +0000 Subject: Expand the comment about -Wstrict-overflow on GCC Expand on the comment on why we don't enable -Wstrict-overflow=5 on GCC. Link: Reviewed-by: Alejandro Colomar Signed-off-by: Andrew Clayton --- auto/cc/test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'auto') diff --git a/auto/cc/test b/auto/cc/test index fdb84760..8c9f2fc1 100644 --- a/auto/cc/test +++ b/auto/cc/test @@ -84,7 +84,9 @@ case $NXT_CC_NAME in #NXT_CFLAGS="$NXT_CFLAGS -fomit-frame-pointer" #NXT_CFLAGS="$NXT_CFLAGS -momit-leaf-frame-pointer" - # -Wstrict-overflow is supported by GCC 4.2+. + # While -Wstrict-overflow is supported by GCC 4.2+, + # at level 3 and above it is prone to give false + # positives. #NXT_CFLAGS="$NXT_CFLAGS -Wstrict-overflow=5" NXT_CFLAGS="$NXT_CFLAGS -Wmissing-prototypes" -- cgit