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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #5)
> Confirmed.  Similarly to other bug reports involving warnings and macros
> defined in system headers this too is caused by -Wno-system-headers and the
> macro NULL being defined in system headers.

Perhaps this is relevant (from https://gcc.gnu.org/wiki/DiagnosticsGuidelines)

In cases where we want to emit diagnostics about a token that is located in a
macro that is itself defined in system header, for example, for the NULL macro,
using the original location of the token will suppress the diagnostic (unless
-Wsystem-header). Instead, one should use:

          source_location loc =
            expansion_point_location_if_in_system_header (original_location);

Reply via email to