You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/09/02 20:17:47 UTC
git commit: THRIFT-2160 Warning in thrift.h when compiling with
-Wunused and NDEBUG Patch: Frank Meerkoetter
Updated Branches:
refs/heads/master 17d42799e -> acf15dc30
THRIFT-2160 Warning in thrift.h when compiling with -Wunused and NDEBUG
Patch: Frank Meerkoetter
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/acf15dc3
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/acf15dc3
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/acf15dc3
Branch: refs/heads/master
Commit: acf15dc30429d609735efc7686f197607d8923d1
Parents: 17d4279
Author: Roger Meier <ro...@apache.org>
Authored: Mon Sep 2 20:16:49 2013 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Mon Sep 2 20:16:49 2013 +0200
----------------------------------------------------------------------
lib/cpp/src/thrift/Thrift.h | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/acf15dc3/lib/cpp/src/thrift/Thrift.h
----------------------------------------------------------------------
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 @@ class TEnumIterator : public std::iterator<std::forward_iterator_tag, std::pair<
}
bool operator !=(const TEnumIterator& end) {
+ (void)end; // avoid "unused" warning with NDEBUG
assert(end.n_ == -1);
return (ii_ != n_);
}