Turn on -Werror=unused-private-field for Clang.

Change-Id: Ibabc1456baf190eba191ebe0b81e3d73a4acc98f
This commit is contained in:
Wouter van Oortmerssen
2019-02-11 09:54:46 -08:00
parent cc7f9b89f3
commit cf47f27164
2 changed files with 2 additions and 1 deletions

View File

@@ -2180,6 +2180,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
return (size > size_) ? 0 : size;
#else
// Must turn on FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE for this to work.
(void)upper_bound_;
FLATBUFFERS_ASSERT(false);
return 0;
#endif