diff options
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 |