Skip to content

Commit bd4bbf3

Browse files
committed
Fix test for release build
1 parent b2c3ded commit bd4bbf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/tracing/from_current.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ TEST(FromCurrent, SEHBasic) {
203203
[&] () {
204204
CPPTRACE_SEH_TRY {
205205
[&] () {
206-
auto res = my_div_function(10, 0);
206+
volatile auto res = my_div_function(10, 0);
207207
(void)res;
208208
} ();
209209
} CPPTRACE_SEH_EXCEPT(divide_zero_filter(GetExceptionCode())) {
@@ -238,7 +238,7 @@ TEST(FromCurrent, SEHCorrectHandler) {
238238
[&] () {
239239
CPPTRACE_SEH_TRY {
240240
[&] () {
241-
auto res = my_div_function(10, 0);
241+
volatile auto res = my_div_function(10, 0);
242242
(void)res;
243243
} ();
244244
} CPPTRACE_SEH_EXCEPT(EXCEPTION_CONTINUE_SEARCH) {

0 commit comments

Comments
 (0)