summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2018-12-11 18:53:29 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-11 18:53:29 -0800
commit3917a0d897b5bee06ef273ff0aaa0a3754e9f8d6 (patch)
treeb4ebc27556824f7f00c532ef97c3260d3262d91f
parent9da567e1a3e2a9ccae6a1235e30b636cb6644060 (diff)
parentf646481822caf9a1e9c744a8bb76820adc32ae72 (diff)
downloadrs-3917a0d897b5bee06ef273ff0aaa0a3754e9f8d6.tar.gz
Merge "Remove unused variable and trim down unnecessary cflags."
am: f646481822 Change-Id: Ie3521281bb00ca3609df2f10067829e792b07ead
-rw-r--r--Android.bp6
-rw-r--r--rsg_generator.c1
2 files changed, 1 insertions, 6 deletions
diff --git a/Android.bp b/Android.bp
index 45d512b6..d90d40a1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -97,11 +97,7 @@ cc_binary_host {
],
cflags: [
- "-Wall",
- "-Werror",
- "-Wno-error=unneeded-internal-declaration",
- "-Wno-error=unused-function",
- "-Wno-error=unused-variable",
+ "-Wno-unused-function",
],
stl: "none",
diff --git a/rsg_generator.c b/rsg_generator.c
index d0a95a28..89caa600 100644
--- a/rsg_generator.c
+++ b/rsg_generator.c
@@ -342,7 +342,6 @@ void printApiCpp(FILE *f) {
fprintf(f, "\n");
for (ct=0; ct < apiCount; ct++) {
- int needFlush = 0;
const ApiEntry * api = &apis[ct];
fprintf(f, "extern \"C\" ");