Use -Werror in packages/services/Car/tools
* Remove unused local variables.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ia5a0e9b5d16b9e5daa51ee8dca30a5756690fa31
diff --git a/tools/bootio/Android.mk b/tools/bootio/Android.mk
index bbf9e9f..e4db835 100644
--- a/tools/bootio/Android.mk
+++ b/tools/bootio/Android.mk
@@ -30,6 +30,8 @@
libprotobuf-cpp-lite \
bootio_cflags := \
+ -Wall \
+ -Werror \
-Wextra \
define bootio_proto_include
diff --git a/tools/bootio/bootio_collector.cpp b/tools/bootio/bootio_collector.cpp
index 96aa765..495a9aa 100644
--- a/tools/bootio/bootio_collector.cpp
+++ b/tools/bootio/bootio_collector.cpp
@@ -33,8 +33,6 @@
#define PID_IO_FILE "/proc/%d/io"
#define PROC_DIR "/proc"
-static const int PROC_NAME_LEN = 64;
-static const int THREAD_NAME_LEN = 32;
static const int MAX_LINE = 256;
#define die(...) { LOG(ERROR) << (__VA_ARGS__); exit(EXIT_FAILURE); }