https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69900

            Bug ID: 69900
           Summary: [6 Regression] Unhelpful diagnostic about Ignored
                    options
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

[  182s] ../grub-core/lib/pbkdf2.c:34:32: error: '-Wunreachable-code' is not an
option that controls warnings [-Werror=pragmas]
[  182s]  #pragma GCC diagnostic ignored "-Wunreachable-code"
[  182s]                                 ^~~~~~~~~~~~~~~~~~~~
[  182s] cc1: all warnings being treated as errors

from

#pragma GCC diagnostic ignored "-Wunreachable-code"

I think CL_IGNORED flags should behave differently here.

Reply via email to