Fix extra semicolon in DAWN_UNUSED_FUNC
This is fixes the soon to be added -Wc++98-compat-extra-semi wraning. TBR=kainino@chromium.org BUG= Change-Id: I26abb54c821a9ad0893af37b626c44d8271c216c Reviewed-on: https://dawn-review.googlesource.com/c/4661 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
446ab44ddb
commit
445869d2b0
|
@ -85,7 +85,7 @@ extern void __cdecl __debugbreak(void);
|
|||
// It seems that (void) EXPR works on all compilers to silence the unused variable warning.
|
||||
#define DAWN_UNUSED(EXPR) (void)EXPR
|
||||
// Likewise using static asserting on sizeof(&FUNC) seems to make it tagged as used
|
||||
#define DAWN_UNUSED_FUNC(FUNC) static_assert(sizeof(&FUNC) == sizeof(void (*)()), "");
|
||||
#define DAWN_UNUSED_FUNC(FUNC) static_assert(sizeof(&FUNC) == sizeof(void (*)()), "")
|
||||
|
||||
// Add noop replacements for macros for features that aren't supported by the compiler.
|
||||
#if !defined(DAWN_LIKELY)
|
||||
|
|
Loading…
Reference in New Issue