Skip to content

Commit 8b6613e

Browse files
committed
Only check for BOOST_GCC when it's defined
This fixes warnings with clang: /usr/local/include/boost/tuple/detail/tuple_basic.hpp:44:5: warning: 'BOOST_GCC' is not defined, evaluates to 0 [-Wundef]
1 parent b54dd80 commit 8b6613e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/tuple/detail/tuple_basic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
#include "boost/detail/workaround.hpp" // needed for BOOST_WORKAROUND
4343

44-
#if BOOST_GCC >= 40700
44+
#if defined(BOOST_GCC) && (BOOST_GCC >= 40700)
4545
#pragma GCC diagnostic push
4646
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
4747
#endif
@@ -979,7 +979,7 @@ inline void swap(tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>& lhs,
979979
} // end of namespace boost
980980

981981

982-
#if BOOST_GCC >= 40700
982+
#if defined(BOOST_GCC) && (BOOST_GCC >= 40700)
983983
#pragma GCC diagnostic pop
984984
#endif
985985

0 commit comments

Comments
 (0)