diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-02-29 02:41:59 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-03-09 00:42:27 +0000 |
commit | 1dcb5383319a2e41969234d838a20f6a4316334e (patch) | |
tree | 134b1cf59e6d36b0d094124fc195c0824df30f5e /auto/cc/test | |
parent | 806e209df541114f79033651271ef62d80bb69f5 (diff) | |
download | unit-1dcb5383319a2e41969234d838a20f6a4316334e.tar.gz unit-1dcb5383319a2e41969234d838a20f6a4316334e.tar.bz2 |
Expand the comment about -Wstrict-overflow on GCC
Expand on the comment on why we don't enable -Wstrict-overflow=5 on GCC.
Link: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96658>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
-rw-r--r-- | auto/cc/test | 4 |
1 files changed, 3 insertions, 1 deletions
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" |