Use -Werror in device/google/marlin/usb
* Remove unused local variables.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ide7ab73dc874d48fc88e3ff573f953ae2d62eddb
diff --git a/usb/Android.bp b/usb/Android.bp
index b8db9ff..2f13b54 100644
--- a/usb/Android.bp
+++ b/usb/Android.bp
@@ -17,6 +17,7 @@
relative_install_path: "hw",
init_rc: ["android.hardware.usb@1.1-service.marlin.rc"],
srcs: ["service.cpp", "Usb.cpp"],
+ cflags: ["-Wall", "-Werror"],
shared_libs: [
"libbase",
"libhidlbase",
diff --git a/usb/Usb.cpp b/usb/Usb.cpp
index 601c70b..dbb98f4 100644
--- a/usb/Usb.cpp
+++ b/usb/Usb.cpp
@@ -331,8 +331,6 @@
dp = opendir("/sys/class/typec");
if (dp != NULL) {
- int32_t ports = 0;
- int32_t current = 0;
struct dirent *ep;
while ((ep = readdir(dp))) {