diff options
author | 2015-12-07 10:41:36 -0800 | |
---|---|---|
committer | 2015-12-07 10:41:36 -0800 | |
commit | 573ce20f4298e0a83c36a106cde78f5442801f50 (patch) | |
tree | d18188b6d4465c06a1ea80d24faf36a077de535a /include/utils/win/SkHRESULT.h | |
parent | d5c4265b49d212f7888d0516328f39c4d45d3058 (diff) |
clang/win: Let SK_TRACEHR not produce -Wunused-value warnings in release builds.
Fixes warnings like:
..\..\third_party\skia\include\utils\win\SkHRESULT.h(51,23) : note: expanded from macro 'HRNM'
^~~~~~~~~~~~~~~~~~~~~~~~~
..\..\third_party\skia\include\utils\win\SkHRESULT.h(26,20) : note: expanded from macro 'HR_GENERAL'
SK_TRACEHR(_hr, _msg);\
^~~
..\..\third_party\skia\include\utils\win\SkHRESULT.h(20,31) : note: expanded from macro 'SK_TRACEHR'
^~~
BUG=chromium:505318
TBR=reed
This is a trivial implementation change.
Review URL: https://codereview.chromium.org/1503463004
Diffstat (limited to 'include/utils/win/SkHRESULT.h')
-rw-r--r-- | include/utils/win/SkHRESULT.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/win/SkHRESULT.h b/include/utils/win/SkHRESULT.h index a6cc1d21b9..a0ffd5935c 100644 --- a/include/utils/win/SkHRESULT.h +++ b/include/utils/win/SkHRESULT.h @@ -17,7 +17,7 @@ void SkTraceHR(const char* file, unsigned long line, #ifdef SK_DEBUG #define SK_TRACEHR(_hr, _msg) SkTraceHR(__FILE__, __LINE__, _hr, _msg) #else -#define SK_TRACEHR(_hr, _msg) _hr +#define SK_TRACEHR(_hr, _msg) sk_ignore_unused_variable(_hr) #endif #define HR_GENERAL(_ex, _msg, _ret) {\ |