OSDN Git Service

Use -Werror in system/extras/tests
authorChih-Hung Hsieh <chh@google.com>
Mon, 16 Oct 2017 18:23:50 +0000 (11:23 -0700)
committerChih-Hung Hsieh <chh@google.com>
Mon, 16 Oct 2017 18:23:50 +0000 (11:23 -0700)
* Remove unused local variable.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I759429de1807ae63988d80b563ee3345e5fe5e99

tests/lib/testUtil/Android.bp
tests/lib/testUtil/testUtil.c

index 35678d4..8ac90a6 100644 (file)
@@ -17,6 +17,7 @@
 cc_library_static {
     name: "libtestUtil",
     srcs: ["testUtil.c"],
+    cflags: ["-Wall", "-Werror"],
     export_include_dirs: ["include"],
     shared_libs: [
         "libcutils",
index 791a2f7..26781ea 100644 (file)
@@ -393,7 +393,6 @@ testXDumpGetOffset(void)
 void testExecCmd(const char *cmd)
 {
     FILE *fp;
-    int rv;
     int status;
     char str[MAXSTR];