Ticket #11635: unused-typedef.patch

File unused-typedef.patch, 512 bytes (added by lopresti@…, 7 years ago)

Trivial patch to fix unused typedef warnings from Clang

  • include/boost/static_assert.hpp

    diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp
    index 8dfddae..ae547ad 100644
    a b  
    6767//
    6868// If the compiler warns about unused typedefs then enable this:
    6969//
    70 #if defined(__GNUC__) && (__GNUC__ >= 4)
     70#if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
    7171#  define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused))
    7272#else
    7373#  define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE