[Webkit-unassigned] [Bug 228601] New: GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 29 13:09:09 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=228601

            Bug ID: 228601
           Summary: GCC 11 builds should use -Wno-array-bounds,
                    -Wno-nonnull
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: bugs-noreply at webkitgtk.org
            Blocks: 226557

Prior to GCC 11, these were good warnings that could catch serious errors. But GCC 11 has just become too sensitive and it's flagging what appear to be harmless cases, and not providing enough feedback to know why. This has resulted in me littering our code with pragmas to suppress GCC's false positives, and I think it's reached the point where it's nicer to just turn off the warnings until such time that GCC gets this under control, and rely on Clang instead in the meantime.

The GCC developers have indicated that these warnings will *always* produce false positives in some circumstances, but with GCC 11 it's just too become too much IMO.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=226557
[Bug 226557] -Warray-bounds warning in Packed.h
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210729/cb3a5178/attachment.htm>


More information about the webkit-unassigned mailing list