diff options
author | Matthew Newhook <matthew@zeroc.com> | 2008-03-13 15:56:24 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2008-03-13 15:56:24 +0800 |
commit | ca80b1da9e45035947e2f5f87cc257dafffc267a (patch) | |
tree | 4950ecce5a080851a7ccdeb64cb54cbe4d5c6cf0 /cpp/test | |
parent | - Revert prior fix for bug 2752. (diff) | |
download | ice-ca80b1da9e45035947e2f5f87cc257dafffc267a.tar.bz2 ice-ca80b1da9e45035947e2f5f87cc257dafffc267a.tar.xz ice-ca80b1da9e45035947e2f5f87cc257dafffc267a.zip |
get rid of some optimizer warnings.
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/IceUtil/condvar/WorkQueue.cpp | 2 | ||||
-rw-r--r-- | cpp/test/Slice/keyword/Client.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/cpp/test/IceUtil/condvar/WorkQueue.cpp b/cpp/test/IceUtil/condvar/WorkQueue.cpp index 917f4bdcd63..98f64f8fffe 100644 --- a/cpp/test/IceUtil/condvar/WorkQueue.cpp +++ b/cpp/test/IceUtil/condvar/WorkQueue.cpp @@ -183,7 +183,7 @@ public: { while(true) { - int res; + int res = 0; // This is a poll. bool tout = _q->timedGet(res, Time::seconds(0)); _dog->touch(!tout); diff --git a/cpp/test/Slice/keyword/Client.cpp b/cpp/test/Slice/keyword/Client.cpp index 9b283edf767..56163a422c5 100644 --- a/cpp/test/Slice/keyword/Client.cpp +++ b/cpp/test/Slice/keyword/Client.cpp @@ -8,6 +8,7 @@ // ********************************************************************** #include <Ice/Ice.h> +#include <TestCommon.h> #include <Key.h> using namespace std; @@ -81,7 +82,7 @@ void testtypes() { _cpp_and::_cpp_continue a = _cpp_and::_cpp_asm; - assert(a); + test(a); _cpp_and::_cpp_auto b; b._cpp_default = 0; @@ -119,7 +120,7 @@ testtypes() _cpp_and::friendPtr l = new friendI(); const int m = _cpp_and::_cpp_template; - assert(m == _cpp_and::_cpp_template); + test(m == _cpp_and::_cpp_template); } int |