celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject celix git commit: CELIX-426: Changes struct initialization trying to prevent some gcc 4.8 warnings
Date Thu, 24 May 2018 18:16:31 GMT
Repository: celix
Updated Branches:
  refs/heads/feature/CELIX-426-cxx-api 70308481c -> 414f50a8f


CELIX-426: Changes struct initialization trying to prevent some gcc 4.8 warnings


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/414f50a8
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/414f50a8
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/414f50a8

Branch: refs/heads/feature/CELIX-426-cxx-api
Commit: 414f50a8f4ae001241c9d36286f86445d2374e89
Parents: 7030848
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Thu May 24 20:15:33 2018 +0200
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Thu May 24 20:15:33 2018 +0200

----------------------------------------------------------------------
 framework/gtest/src/cxx_BundleContext_tests.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/414f50a8/framework/gtest/src/cxx_BundleContext_tests.cc
----------------------------------------------------------------------
diff --git a/framework/gtest/src/cxx_BundleContext_tests.cc b/framework/gtest/src/cxx_BundleContext_tests.cc
index 1777207..dbb4824 100644
--- a/framework/gtest/src/cxx_BundleContext_tests.cc
+++ b/framework/gtest/src/cxx_BundleContext_tests.cc
@@ -77,7 +77,7 @@ TEST_F(BundleContextTest, RegisterCServiceTest) {
 
     auto &ctx = this->framework().getFrameworkContext();
 
-    test_svc svc1{};
+    test_svc svc1;
 
     long svcId = ctx.registerCService(&svc1, "test service");
     EXPECT_TRUE(svcId > 0);
@@ -96,7 +96,7 @@ TEST_F(BundleContextTest, RegisterCServiceTest) {
 TEST_F(BundleContextTest, RegisterServiceTest) {
     auto &ctx = this->framework().getFrameworkContext();
 
-    TestImpl svc1{};
+    TestImpl svc1;
 
     long svcId = ctx.registerService<ITestSvc>(&svc1, ITestSvc::NAME);
     EXPECT_TRUE(svcId > 0);
@@ -111,7 +111,7 @@ TEST_F(BundleContextTest, RegisterServiceTest) {
 TEST_F(BundleContextTest, UseService) {
     auto &ctx = this->framework().getFrameworkContext();
 
-    TestImpl svc1{};
+    TestImpl svc1;
 
     long svcId = ctx.registerService<ITestSvc>(&svc1, ITestSvc::NAME);
     EXPECT_TRUE(svcId > 0);
@@ -138,7 +138,7 @@ TEST_F(BundleContextTest, UseService) {
 TEST_F(BundleContextTest, UseServices) {
     auto &ctx = this->framework().getFrameworkContext();
 
-    TestImpl svc{};
+    TestImpl svc;
 
     long svcId1 = ctx.registerService<ITestSvc>(&svc, "test service");
     EXPECT_TRUE(svcId1 > 0);


Mime
View raw message