diff options
author | Chih-hung Hsieh <chh@google.com> | 2017-10-16 19:24:53 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-16 19:24:53 +0000 |
commit | 0bfb717a379c5f5b500fd6ef32647b214f970049 (patch) | |
tree | d27f59b1a46b23d73e8f80c2b2e62b484131288e /tools/incident_report | |
parent | 7edf405cddbea3d2684dba9d7872e248fb14ddfa (diff) | |
parent | 16fbd3a1d821a375abbc23749b891489aecd53d7 (diff) |
Merge "Use -Werror in frameworks/base"
am: 16fbd3a1d8
Change-Id: Iab69cf4f99cf4bedd12eb7764c773a893bfe5343
Diffstat (limited to 'tools/incident_report')
-rw-r--r-- | tools/incident_report/Android.bp | 2 | ||||
-rw-r--r-- | tools/incident_report/printer.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tools/incident_report/Android.bp b/tools/incident_report/Android.bp index ab55dbd81821..f2d0d0f3e553 100644 --- a/tools/incident_report/Android.bp +++ b/tools/incident_report/Android.bp @@ -31,5 +31,5 @@ cc_binary_host { "libprotobuf-cpp-full", ], - cflags: ["-Wno-unused-parameter"], + cflags: ["-Wall", "-Werror"], } diff --git a/tools/incident_report/printer.cpp b/tools/incident_report/printer.cpp index bd660dd20dfd..bff1025ad8da 100644 --- a/tools/incident_report/printer.cpp +++ b/tools/incident_report/printer.cpp @@ -70,7 +70,6 @@ Out::printf(const char* format, ...) len = vsnprintf(mBuf, mBufSize, format, args); va_end(args); - bool truncated = (len >= mBufSize) && (reallocate(len) < len); va_start(args, format); len = vsnprintf(mBuf, mBufSize, format, args); |