diff options
author | Michi Henning <michi@zeroc.com> | 2002-11-15 01:47:47 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-11-15 01:47:47 +0000 |
commit | 4e9968f87c34bf8a293a312fa192f03451149252 (patch) | |
tree | 40bc38f425b5420d68afdf7236b2bfd1623229e9 /cpp/src | |
parent | adding proxy comparison methods (diff) | |
download | ice-4e9968f87c34bf8a293a312fa192f03451149252.tar.bz2 ice-4e9968f87c34bf8a293a312fa192f03451149252.tar.xz ice-4e9968f87c34bf8a293a312fa192f03451149252.zip |
Moved definition of pos into assert to avoid warning about unused variable
when compiling without debug.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Connection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp index 245572147cb..20403226167 100644 --- a/cpp/src/Ice/Connection.cpp +++ b/cpp/src/Ice/Connection.cpp @@ -83,8 +83,7 @@ IceInternal::Connection::validate() is.i = is.b.begin(); _transceiver->read(is, _endpoint->timeout()); assert(is.i == is.b.end()); - int pos = is.i - is.b.begin(); - assert(pos >= headerSize); + assert((int pos = is.i - is.b.begin(), pos >= headerSize)); is.i = is.b.begin(); Byte protVer; is.read(protVer); |