diff options
-rw-r--r-- | internal/sanitizers.h | 7 | ||||
-rw-r--r-- | parser_st.c | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/internal/sanitizers.h b/internal/sanitizers.h index 94f4e4165a..1cab12fb52 100644 --- a/internal/sanitizers.h +++ b/internal/sanitizers.h @@ -54,10 +54,11 @@ # include "internal/warnings.h" # undef NO_SANITIZE # define NO_SANITIZE(x, y) \ - COMPILER_WARNING_PUSH; \ - COMPILER_WARNING_IGNORED(-Wattributes); \ + COMPILER_WARNING_PUSH \ + COMPILER_WARNING_IGNORED(-Wattributes) \ __attribute__((__no_sanitize__(x))) y; \ - COMPILER_WARNING_POP + COMPILER_WARNING_POP \ + y #endif #ifndef NO_SANITIZE diff --git a/parser_st.c b/parser_st.c index 17f669e763..c234026122 100644 --- a/parser_st.c +++ b/parser_st.c @@ -154,7 +154,8 @@ nonempty_memcpy(void *dest, const void *src, size_t n) _Pragma("GCC diagnostic push") \ _Pragma("GCC diagnostic ignored \"-Wattributes\"") \ __attribute__((__no_sanitize__(x))) y; \ - _Pragma("GCC diagnostic pop") + _Pragma("GCC diagnostic pop") \ + y #endif #ifndef NO_SANITIZE |