diff options
author | Benoit Foucher <benoit@zeroc.com> | 2011-06-06 16:28:43 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2011-06-06 16:28:43 +0200 |
commit | de9bad9575ea118b1e7616ab2ef81a0fb8b94f93 (patch) | |
tree | 92ee1b2ba66aeff53765e1ea9e0c3a38cb54d157 /cpp/src/IceGrid/FreezeDB/FreezeDB.cpp | |
parent | 5129 - VS add-in getIceHome broken by new assembly location (diff) | |
download | ice-de9bad9575ea118b1e7616ab2ef81a0fb8b94f93.tar.bz2 ice-de9bad9575ea118b1e7616ab2ef81a0fb8b94f93.tar.xz ice-de9bad9575ea118b1e7616ab2ef81a0fb8b94f93.zip |
Workaround for GCC 4.4 strict aliasing warning
Diffstat (limited to 'cpp/src/IceGrid/FreezeDB/FreezeDB.cpp')
-rw-r--r-- | cpp/src/IceGrid/FreezeDB/FreezeDB.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/FreezeDB/FreezeDB.cpp b/cpp/src/IceGrid/FreezeDB/FreezeDB.cpp index f6e01e9c826..b3c3da082af 100644 --- a/cpp/src/IceGrid/FreezeDB/FreezeDB.cpp +++ b/cpp/src/IceGrid/FreezeDB/FreezeDB.cpp @@ -102,7 +102,10 @@ ApplicationsWrapperPtr FreezeDatabaseCache::getApplications(const IceDB::DatabaseConnectionPtr& connection) { FreezeDB::DatabaseConnection* c = dynamic_cast<FreezeDB::DatabaseConnection*>(connection.get()); - return new FreezeApplicationsWrapper(c->freezeConnection(), "applications"); + // COMPILERFIX: GCC 4.4 w/ -O2 emits strict aliasing warnings + // without the follow temporary. + ApplicationsWrapper *w = new FreezeApplicationsWrapper(c->freezeConnection(), "applications"); + return w; } AdaptersWrapperPtr |