Skip to content

Commit 9c72a9d

Browse files
authored
[compiler-rt] [asan] Remove superfluous trailing semicolons (#110641)
If built as part of the main llvm build, via ENABLE_LLVM_PROJECTS=compiler-rt, the code gets built with more warning options than if built standalone. Some of these trigger warnings like: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
1 parent a200201 commit 9c72a9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/lib/asan/asan_win_common_runtime_thunk.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ static void WINAPI asan_thread_init(void *mod, unsigned long reason,
8585
// initializer is needed as a backup.
8686
extern "C" __declspec(allocate(".CRT$XIB")) int (*__asan_thunk_init)() =
8787
asan_thunk_init;
88-
WIN_FORCE_LINK(__asan_thunk_init);
88+
WIN_FORCE_LINK(__asan_thunk_init)
8989

9090
extern "C" __declspec(allocate(".CRT$XLAB")) void(WINAPI *__asan_tls_init)(
9191
void *, unsigned long, void *) = asan_thread_init;
92-
WIN_FORCE_LINK(__asan_tls_init);
92+
WIN_FORCE_LINK(__asan_tls_init)
9393

9494
////////////////////////////////////////////////////////////////////////////////
9595
// ASan SEH handling.
@@ -103,7 +103,7 @@ static int SetSEHFilter() { return __asan_set_seh_filter(); }
103103
// __asan_intercept_seh gets optimized out, so we have to use an extra function.
104104
extern "C" __declspec(allocate(".CRT$XCAB")) int (*__asan_seh_interceptor)() =
105105
SetSEHFilter;
106-
WIN_FORCE_LINK(__asan_seh_interceptor);
106+
WIN_FORCE_LINK(__asan_seh_interceptor)
107107
}
108108

109109
WIN_FORCE_LINK(__asan_dso_reg_hook)

0 commit comments

Comments
 (0)