commit | acf15dc30429d609735efc7686f197607d8923d1 | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Mon Sep 02 20:16:49 2013 +0200 |
committer | Roger Meier <roger@apache.org> | Mon Sep 02 20:16:49 2013 +0200 |
tree | 2525b9d37a33c653289a99ecb608b074431bc8a3 | |
parent | 17d42799eb5f20dfde5e86a8b877b64b7d6447e3 [diff] |
THRIFT-2160 Warning in thrift.h when compiling with -Wunused and NDEBUG Patch: Frank Meerkoetter
diff --git a/lib/cpp/src/thrift/Thrift.h b/lib/cpp/src/thrift/Thrift.h index 7b9a8ad..4d8d87c 100644 --- a/lib/cpp/src/thrift/Thrift.h +++ b/lib/cpp/src/thrift/Thrift.h
@@ -86,6 +86,7 @@ } bool operator !=(const TEnumIterator& end) { + (void)end; // avoid "unused" warning with NDEBUG assert(end.n_ == -1); return (ii_ != n_); }