*/
#if !defined(SkNO_RETURN_HINT)
#if SK_HAS_COMPILER_FEATURE(attribute_analyzer_noreturn)
- // 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()
+ namespace {
+ inline void SkNO_RETURN_HINT() __attribute__((analyzer_noreturn));
+ inline void SkNO_RETURN_HINT() {}
+ }
#else
#define SkNO_RETURN_HINT() do {} while (false)
#endif
#include "SkUtils.h"
-// declared in SkPostConfig.h, see comment there.
-void SkNoReturnHint() {}
-
-///////////////////////////////////////////////////////////////////////////////
-
#if 0
#define assign_16_longs(dst, value) \
do { \