Use -Werror in frameworks/base/tools/streaming_proto

* Remove unused constants.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I43940e8c446bab25b8fa841ec8c17885ab5d88ed
This commit is contained in:
Chih-Hung Hsieh
2017-12-05 10:11:02 -08:00
parent af807e02d0
commit 548fdbda19
2 changed files with 4 additions and 2 deletions

View File

@@ -24,6 +24,10 @@ cc_defaults {
"stream_proto_utils.cpp",
"string_utils.cpp",
],
cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["libprotoc"],
}

View File

@@ -13,8 +13,6 @@ const uint64_t FIELD_TYPE_SHIFT = 32;
// TODO: packed is not supported yet.
//
const uint64_t FIELD_COUNT_SHIFT = 40;
const uint64_t FIELD_COUNT_MASK = 0x0fULL << FIELD_COUNT_SHIFT;
const uint64_t FIELD_COUNT_UNKNOWN = 0;
const uint64_t FIELD_COUNT_SINGLE = 1ULL << FIELD_COUNT_SHIFT;
const uint64_t FIELD_COUNT_REPEATED = 2ULL << FIELD_COUNT_SHIFT;
const uint64_t FIELD_COUNT_PACKED = 5ULL << FIELD_COUNT_SHIFT;