git: devd(8): Add -Wno-unused-local-typedefs to CFLAGS for now.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Feb 26 02:48:23 PST 2015


commit cb1ce5292c83c9eb243667f8534ac508645a694e
Author: Sascha Wildner <saw at online.de>
Date:   Thu Feb 26 11:47:05 2015 +0100

    devd(8): Add -Wno-unused-local-typedefs to CFLAGS for now.
    
    The issue is that with -Wunused-local-typedefs, our GCC 5.0 warns about
    unused local typedefs in its own headers, in this case stl_algo.h which
    comes in via <algorithm>, which devd(8) includes.
    
    Example:
    
    c++ [...] -Werror -Wall [...] -c devd.cc
    In file included from /usr/include/c++/5.0/bits/stl_algo.h:61:0,
                     from /usr/include/c++/5.0/algorithm:62,
                     from devd.cc:93:
    /usr/include/c++/5.0/bits/stl_heap.h: In function 'void std::pop_heap(_RAIter, _RAIter)':
    /usr/include/c++/5.0/bits/stl_heap.h:266:2: error: typedef '_ValueType' locally defined but not used [-Werror=unused-local-typedefs]
      _ValueType;
      ^
    [...]
    
    More typedefs are warned about, _InputValueType, _OutputValueType, and
    _DistanceType.

Summary of changes:
 sbin/devd/Makefile | 6 ++++++
 share/mk/sys.mk    | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb1ce5292c83c9eb243667f8534ac508645a694e


-- 
DragonFly BSD source repository



More information about the Commits mailing list