git: gcc: Allow our C++ headers to survive -Wsystem-headers.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Sep 28 13:26:05 PDT 2020


commit 894c19b2d84fd28593ce799678d7d9f7d33936ef
Author: Sascha Wildner <saw at online.de>
Date:   Mon Sep 28 22:25:59 2020 +0200

    gcc: Allow our C++ headers to survive -Wsystem-headers.
    
    It was breaking on defining a macro that resolves to a defined()
    directive, which is apparently an issue in C++ land. As a workaround,
    define a C++ specific macro that is either 0 or 1 for long long
    support and can be used without issues.
    
    Stop filtering out -Wsystem-headers in CXXFLAGS. The remaining -W...
    options that are filtered out are all C specific.

Summary of changes:
 contrib/gcc-8.0/libstdc++-v3/config/os/bsd/dragonfly/os_defines.h | 7 ++++++-
 share/mk/sys.mk                                                   | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/894c19b2d84fd28593ce799678d7d9f7d33936ef


-- 
DragonFly BSD source repository



More information about the Commits mailing list