File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import os ;
8
8
9
- import ../../predef/check/predef
9
+ import ../../predef/tools/ check/predef
10
10
: check
11
11
: predef-check ;
12
12
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ class type_info;
136
136
#define BOOST_PP_VARIADICS 1
137
137
#endif
138
138
139
- #if BOOST_CLANG
139
+ #ifdef BOOST_CLANG
140
140
#define BOOST_PP_VARIADICS 1
141
141
#endif
142
142
@@ -151,7 +151,8 @@ class type_info;
151
151
#endif /* ifndef BOOST_PP_VARIADICS */
152
152
153
153
// some versions of VC exibit a manifest error with this BOOST_UNREACHABLE_RETURN
154
- #if BOOST_WORKAROUND(BOOST_MSVC, < 1910)
154
+ // gcc <= 4.6 fails with unused variable even when the return is never reached
155
+ #if BOOST_WORKAROUND(BOOST_MSVC, < 1910) || (defined(BOOST_GCC) && BOOST_GCC < 40700)
155
156
# define BOOST_TEST_UNREACHABLE_RETURN (x ) return x
156
157
#else
157
158
# define BOOST_TEST_UNREACHABLE_RETURN (x ) BOOST_UNREACHABLE_RETURN(x)
Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ struct nil {
131
131
#else
132
132
operator T const &() const
133
133
#endif
134
- { nfp_detail::report_access_to_invalid_parameter (true ); static T* v = 0 ; return *v ; }
134
+ { nfp_detail::report_access_to_invalid_parameter (true ); static T* v = 0 ; BOOST_TEST_UNREACHABLE_RETURN (*v) ; }
135
135
136
136
template <typename T>
137
137
T any_cast () const
138
- { nfp_detail::report_access_to_invalid_parameter (true ); static typename remove_reference<T>::type* v = 0 ; return *v ; }
138
+ { nfp_detail::report_access_to_invalid_parameter (true ); static typename remove_reference<T>::type* v = 0 ; BOOST_TEST_UNREACHABLE_RETURN (*v) ; }
139
139
140
140
template <typename Arg1>
141
141
nil operator ()( Arg1 const & )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ project boost/test-tests
18
18
: requirements
19
19
;
20
20
21
- import ../../predef/check/predef
21
+ import ../../predef/tools/ check/predef
22
22
: check require
23
23
: predef-check predef-require ;
24
24
You can’t perform that action at this time.
0 commit comments