Skip to content

Commit 08182b9

Browse files
committed
Fix MSVC warning macros
1 parent 7b42f33 commit 08182b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/snatch/snatch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ struct with_what_contains : private contains_substring {
641641
# define WARNING_DISABLE_PARENTHESES _Pragma("GCC diagnostic ignored \"-Wparentheses\"")
642642
# define WARNING_DISABLE_CONSTANT_COMPARISON do {} while (0)
643643
#elif defined(_MSC_VER)
644-
# define WARNING_PUSH do {} _Pragma("warning(push)")
645-
# define WARNING_POP do {} _Pragma("warning(pop)")
644+
# define WARNING_PUSH _Pragma("warning(push)")
645+
# define WARNING_POP _Pragma("warning(pop)")
646646
# define WARNING_DISABLE_PARENTHESES do {} while (0)
647647
# define WARNING_DISABLE_CONSTANT_COMPARISON _Pragma("warning(disable: 4127)")
648648
#else

0 commit comments

Comments
 (0)