summaryrefslogtreecommitdiff
path: root/tests/hardware/struct-size.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-12-01 11:28:37 -0800
committerChih-Hung Hsieh <chh@google.com>2017-12-04 13:32:48 -0800
commit4224d9ea16ea2f9813d080b5d20f3992114d33ca (patch)
tree6ca1e5f1e12a0b16e0eed8571beab2f3c6a0fbbc /tests/hardware/struct-size.cpp
parent49cf86194541314ec6e42a0ef607d04cd39c36c4 (diff)
Use -Werror in hardware/libhardware/tests
* Remove unused local variables. * Suppress warning of unused template functions. * Fix error of unused expression value. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I5a37c24f3be0f61b0ae4552e34b7311f561d499e
Diffstat (limited to 'tests/hardware/struct-size.cpp')
-rw-r--r--tests/hardware/struct-size.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hardware/struct-size.cpp b/tests/hardware/struct-size.cpp
index 232b55da..14a26efe 100644
--- a/tests/hardware/struct-size.cpp
+++ b/tests/hardware/struct-size.cpp
@@ -24,7 +24,7 @@
#include <hardware/camera_common.h>
#include <hardware/camera3.h>
-template<size_t> static constexpr size_t CheckSizeHelper(size_t, size_t);
+template<size_t> static constexpr size_t CheckSizeHelper(size_t, size_t) __attribute((unused));
template<> constexpr size_t CheckSizeHelper<4>(size_t size32, size_t /* size64 */) {
return size32;