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-446: Fixes some missing field initializers compiler warnings
Date Fri, 04 May 2018 13:02:06 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 031fb7399 -> debb4b12d


CELIX-446: Fixes some missing field initializers compiler warnings


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

Branch: refs/heads/develop
Commit: debb4b12d102b90a47c2277ca8b88c35c3a11dc0
Parents: 031fb73
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Fri May 4 15:01:12 2018 +0200
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Fri May 4 15:01:12 2018 +0200

----------------------------------------------------------------------
 framework/tst/bundle_context_services_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/debb4b12/framework/tst/bundle_context_services_test.cpp
----------------------------------------------------------------------
diff --git a/framework/tst/bundle_context_services_test.cpp b/framework/tst/bundle_context_services_test.cpp
index 89d2bee..f9050c5 100644
--- a/framework/tst/bundle_context_services_test.cpp
+++ b/framework/tst/bundle_context_services_test.cpp
@@ -297,7 +297,7 @@ TEST(CelixBundleContextServicesTests, servicesTrackerInvalidArgsTest)
{
     CHECK(trackerId < 0); //required ctx and opts missing
     trackerId = celix_bundleContext_trackServicesWithOptions(ctx, NULL);
     CHECK(trackerId < 0); //required opts missing
-    celix_service_tracker_options_t opts{};
+    celix_service_tracker_options_t opts;
     memset(&opts, 0, sizeof(opts));
     trackerId = celix_bundleContext_trackServicesWithOptions(ctx, &opts);
     CHECK(trackerId < 0); //required opts->serviceName missing
@@ -363,7 +363,7 @@ TEST(CelixBundleContextServicesTests, servicesTrackerTestWithProperties)
{
 
     long svcId1 = celix_bundleContext_registerService(ctx, "calc", (void*)0x100, NULL, NULL);
 
-    celix_service_tracker_options_t opts{};
+    celix_service_tracker_options_t opts;
     memset(&opts, 0, sizeof(opts));
     opts.serviceName = "calc";
     opts.callbackHandle = &count;
@@ -403,7 +403,7 @@ TEST(CelixBundleContextServicesTests, servicesTrackerTestWithOwner) {
 
     long svcId1 = celix_bundleContext_registerService(ctx, "calc", (void*)0x100, NULL, NULL);
 
-    celix_service_tracker_options_t opts{};
+    celix_service_tracker_options_t opts;
     memset(&opts, 0, sizeof(opts));
     opts.serviceName = "calc";
     opts.callbackHandle = &count;


Mime
View raw message