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
diff --git a/tests/input/evdev/Android.mk b/tests/input/evdev/Android.mk
index 7f62649..b09a8ac 100644
--- a/tests/input/evdev/Android.mk
+++ b/tests/input/evdev/Android.mk
@@ -20,7 +20,7 @@
     libutils
 
 LOCAL_CLANG := true
-LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter
+LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
 
 # TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
 # here (e.g., use mkdtemp first). At least races will lead to an early failure, as