Skip to content

Commit a11c3d4

Browse files
authored
Merge pull request #1199 from deralmas/fix-error-suppression-for-real
Fix error suppression macro
2 parents 36d3f1e + e1110d6 commit a11c3d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/tracy/Tracy.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@
155155
#define SuppressVarShadowWarning(Expr) \
156156
_Pragma("clang diagnostic push") \
157157
_Pragma("clang diagnostic ignored \"-Wshadow\"") \
158-
Expr \
158+
Expr; \
159159
_Pragma("clang diagnostic pop")
160160
#elif defined(__GNUC__)
161161
#define SuppressVarShadowWarning(Expr) \
162162
_Pragma("GCC diagnostic push") \
163163
_Pragma("GCC diagnostic ignored \"-Wshadow\"") \
164-
Expr \
164+
Expr; \
165165
_Pragma("GCC diagnostic pop")
166166
#elif defined(_MSC_VER)
167167
#define SuppressVarShadowWarning(Expr) \
168168
_Pragma("warning(push)") \
169169
_Pragma("warning(disable : 4456)") \
170-
Expr \
170+
Expr; \
171171
_Pragma("warning(pop)")
172172
#else
173173
#define SuppressVarShadowWarning(Expr) Expr

0 commit comments

Comments
 (0)