devd(8): Add -Wno-unused-local-typedefs to CFLAGS for now.
authorSascha Wildner <saw@online.de>
Thu, 26 Feb 2015 10:47:05 +0000 (11:47 +0100)
committerSascha Wildner <saw@online.de>
Thu, 26 Feb 2015 10:47:05 +0000 (11:47 +0100)
commitcb1ce5292c83c9eb243667f8534ac508645a694e
tree290bc659ff0a5c16097f3809b41acd7aa6069c4c
parent0542f54a43816b0b2d20361053d753fc448b8427
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.
sbin/devd/Makefile
share/mk/sys.mk