File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ CASE( "boolean: Allows to compare greater than or equal with bool (C++11)" )
177177
178178CASE ( " boolean: Supports no discard (C++17, -DBOOLEAN_TEST_NODISCARD=1)" )
179179{
180- #ifdef BOOLEAN_TEST_NODISCARD
180+ #if defined BOOLEAN_TEST_NODISCARD && BOOLEAN_TEST_NODISCARD
181181 boolean_ f ( false );
182182 boolean_ t ( true );
183183
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ call :CompilerVersion version
1515echo VC%version% : %args%
1616
1717set unit_config = ^
18- -Dboolean_BOOLEAN_HEADER=\" nonstd/boolean.hpp\"
18+ -Dboolean_BOOLEAN_HEADER=\" nonstd/boolean.hpp\" ^
19+ -DBOOLEAN_TEST_NODISCARD=1
1920
2021set msvc_defines = ^
2122 -D_CRT_SECURE_NO_WARNINGS ^
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ call :CompilerVersion version
1717echo %clang% %version% : %std%
1818
1919set unit_config = ^
20- -Dboolean_BOOLEAN_HEADER=\" nonstd/boolean.hpp\"
20+ -Dboolean_BOOLEAN_HEADER=\" nonstd/boolean.hpp\" ^
21+ -DBOOLEAN_TEST_NODISCARD=0
2122
2223rem -flto / -fwhole-program
2324set optflags = -O2
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ call :CompilerVersion version
1818echo %gpp% %version% : %std% %args%
1919
2020set unit_config = ^
21- -Dboolean_BOOLEAN_HEADER=\" nonstd/boolean.hpp\"
21+ -Dboolean_BOOLEAN_HEADER=\" nonstd/boolean.hpp\" ^
22+ -DBOOLEAN_TEST_NODISCARD=0
2223
2324rem -flto / -fwhole-program
2425set optflags = -O2
You can’t perform that action at this time.
0 commit comments