diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-11 12:52:04 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-11 12:52:04 +0000 |
commit | 22f0761d7879c108d305cb0d6cc0242ad29e780f (patch) | |
tree | 41ba172e4820a8ed6797f6409887f50c0ef7d1d0 /include/core | |
parent | 38034861d68b5b27805b2aae3be056806892ae64 (diff) |
Fix SkNO_RETURN_HINT warnings on mac/clang
Review URL: http://codereview.appspot.com/6392048/
git-svn-id: http://skia.googlecode.com/svn/trunk@4528 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-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 |