You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2021/03/02 17:22:02 UTC

[GitHub] [celix] pnoltes commented on pull request #324: Feature/gcc 4 9 0 fixes

pnoltes commented on pull request #324:
URL: https://github.com/apache/celix/pull/324#issuecomment-789072886


   > My apologies, I missed the following compile error when compiling in Release mode:
   > 
   > ```
   > /home/oipo-unencrypted/Programming/celix-apache/libs/framework/benchmark/src/LookupServicesBenchmark.cc: In function ‘void findSingleService(benchmark::State&, bool, bool)’:
   > /home/oipo-unencrypted/Programming/celix-apache/libs/framework/benchmark/src/LookupServicesBenchmark.cc:80:22: error: unused variable ‘svcId’ [-Werror=unused-variable]
   >    80 |                 long svcId = celix_bundleContext_findServiceWithOptions(cCtx, &opts);
   >       |                      ^~~~~
   > /home/oipo-unencrypted/Programming/celix-apache/libs/framework/benchmark/src/LookupServicesBenchmark.cc:86:22: error: unused variable ‘svcId’ [-Werror=unused-variable]
   >    86 |                 long svcId = celix_bundleContext_findService(cCtx, IService::NAME);
   >       |                      ^~~~~
   > /home/oipo-unencrypted/Programming/celix-apache/libs/framework/benchmark/src/LookupServicesBenchmark.cc:94:22: error: unused variable ‘svcId’ [-Werror=unused-variable]
   >    94 |                 long svcId = ctx->findServiceWithName<IService>(IService::NAME, filter);
   >       |                      ^~~~~
   > /home/oipo-unencrypted/Programming/celix-apache/libs/framework/benchmark/src/LookupServicesBenchmark.cc:100:22: error: unused variable ‘svcId’ [-Werror=unused-variable]
   >   100 |                 long svcId = ctx->findServiceWithName<IService>(IService::NAME);
   > ```
   
   Replaced assert with State::SkipWithError


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org