id summary reporter owner description type status milestone component version severity resolution keywords cc 2414 "Fix for ""defined but not used"" warning" Dave Abrahams Douglas Gregor "The following simple patch seems to make GCC a whole lot happier: {{{ #!diff --- properties.hpp (revision 3157) +++ properties.hpp (working copy) @@ -93,7 +93,7 @@ #else #define BOOST_DEF_PROPERTY(KIND, NAME) \ struct KIND##_##NAME##_t {}; \ - namespace { KIND##_##NAME##_t KIND##_##NAME; } \ + namespace { KIND##_##NAME##_t const KIND##_##NAME = {}; } \ BOOST_INSTALL_PROPERTY(KIND, NAME) #endif }}} I haven't tested it against the trunk tests but if you are willing to try and see what breaks, I would be happy to apply it in trunk if you give me the go-ahead." Patches closed Boost 1.37.0 graph Boost 1.36.0 Cosmetic invalid