diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPostConfig.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index 90caf7f6c3..6107faad4d 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -64,10 +64,10 @@ */ #if !defined(SkNO_RETURN_HINT) #if SK_HAS_COMPILER_FEATURE(attribute_analyzer_noreturn) - namespace { - inline void SkNO_RETURN_HINT() __attribute__((analyzer_noreturn)); - void SkNO_RETURN_HINT() {} - } + // If we make this a static clang will complain that it isn't called in + // any file that has no asserts. + void SkNoReturnHint() __attribute__((analyzer_noreturn)); + #define SkNO_RETURN_HINT() SkNoReturnHint() #else #define SkNO_RETURN_HINT() do {} while (false) #endif |