build: suppress bugprone-reserved-identifier warnings

These are only used when running `make lintc` with ENABLE_ASAN_UBSAN
enabled, which is why it wasn't caught by CI.
This commit is contained in:
dundargoc 2023-11-21 18:42:53 +01:00 committed by dundargoc
parent 78239f0bbc
commit 26033eee1d

View File

@ -2227,13 +2227,13 @@ static void check_swap_exists_action(void)
}
#ifdef ENABLE_ASAN_UBSAN
const char *__ubsan_default_options(void);
const char *__ubsan_default_options(void); // NOLINT(bugprone-reserved-identifier)
const char *__ubsan_default_options(void)
{
return "print_stacktrace=1";
}
const char *__asan_default_options(void);
const char *__asan_default_options(void); // NOLINT(bugprone-reserved-identifier)
const char *__asan_default_options(void)
{
return "handle_abort=1,handle_sigill=1";