Fixed some compile warnings
authorPatrick Sattler <sattler@itestra.de>
Tue, 18 Feb 2014 13:51:44 +0000 (14:51 +0100)
committerStefan Laner <Stefan.Laner@partner.bmw.de>
Wed, 26 Feb 2014 11:32:11 +0000 (12:32 +0100)
src/CommonAPI/Configuration.cpp
src/CommonAPI/Runtime.cpp
src/test/VariantTest.cpp

index 021dd1d..d15a75a 100644 (file)
@@ -65,7 +65,6 @@ const std::string& Configuration::getDefaultMiddlewareIdentifier() const {
 
 void Configuration::readConfigFile(std::ifstream& addressConfigFile) {
     std::string currentlyParsedBindingIdentifier = "";
-    bool endFile = false;
 
     std::string readLine;
 
index 812b410..9b3a919 100644 (file)
@@ -211,7 +211,6 @@ std::shared_ptr<Runtime> Runtime::checkDynamicLibraries(const std::string& reque
 
     LibraryVersion highestVersionFound = {0, 0, 0};
     std::string fqnOfHighestVersion = "";
-    struct stat filestat;
 
     for (const std::string& singleSearchPath: librarySearchPaths) {
         std::vector<std::string> orderedLibraries = readDirectory(singleSearchPath);
index e83ebe6..b565573 100755 (executable)
@@ -104,7 +104,7 @@ TEST_F(VariantTest, VariantTestPack) {
     EXPECT_EQ(myIntCopy2, fromInt);
 
 #ifdef __EXCEPTIONS
-    EXPECT_ANY_THROW(const int& myFake = myVariant.get<double>());
+    EXPECT_ANY_THROW(myVariant.get<double>());
 #endif
 
     EXPECT_TRUE(myVariant.isType<int>());