diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-12-12 15:57:55 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-12-12 16:08:05 -0800 |
commit | b168933afdf5bcfd54145d5d06c363e7adac29b6 (patch) | |
tree | 25eb7732202dbf4ad255ed1b4ece7ea6a477fe0f | |
parent | c15c56b0d88d3bf9030f549ab37b3415f3c165e5 (diff) | |
download | webview-b168933afdf5bcfd54145d5d06c363e7adac29b6.tar.gz |
Fix compiler warnings to enable -Werror.
* Mark unused variable for static checking.
Bug: 66996870
Test: normal build
Change-Id: Ic130e78539b63197d2389a44530f37c905724091
-rw-r--r-- | chromium/plat_support/draw_gl_functor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/plat_support/draw_gl_functor.cpp b/chromium/plat_support/draw_gl_functor.cpp index 25f4877..7cb49da 100644 --- a/chromium/plat_support/draw_gl_functor.cpp +++ b/chromium/plat_support/draw_gl_functor.cpp @@ -31,7 +31,8 @@ #include <utils/Log.h> #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) -#define COMPILE_ASSERT(expr, err) static const char (err)[(expr) ? 1 : -1] = ""; +#define COMPILE_ASSERT(expr, err) \ +__unused static const char (err)[(expr) ? 1 : -1] = ""; namespace android { namespace { |