aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-03-18 22:11:41 -0700
committerYi Kong <yikong@google.com>2019-03-19 05:35:36 +0000
commit411f59e20bd3b1e5526dc84034c19965770febac (patch)
treeca2e5dbf29e2f00d0eb1ef90be39907c10c59294
parent6efbca08614c5334ae1fd26d1125c24e096d6e3d (diff)
downloadlua-411f59e20bd3b1e5526dc84034c19965770febac.tar.gz
Suppress -Wstring-plus-int warning
clang-r353983 emits the following new warning: external/lua/src/lundump.c:237:33: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int] checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */ ~~~~~~~~~~~~~~^~~ external/lua/src/lundump.c:237:33: note: use array indexing to silence this warning checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */ ^ & [ ] Test: m checkbuild Bug: 128878287 Change-Id: If5eebce35908b2745d27cab6ad31356d488cccf1
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 3f6b42f..f97bb44 100644
--- a/Android.bp
+++ b/Android.bp
@@ -19,6 +19,7 @@ cc_library_static {
"-Werror",
"-Wall",
"-Wno-deprecated-declarations",
+ "-Wno-string-plus-int",
"-O2",
"-DLUA_USE_LINUX",
"-DLUA_COMPAT_5_2",