BewareMyPower opened a new pull request, #312:
URL: https://github.com/apache/pulsar-client-cpp/pull/312

   ### Motivation
   
   https://github.com/apache/pulsar-client-cpp/pull/296 introduced a regression 
for GCC <= 7.
   
   > lib/RetryableOperation.h:109:66: error: 
'pulsar::RetryableOperation<T>::runImpl(pulsar::TimeDuration)::<lambda(pulsar::Result,
 const T&)> [with T = pulsar::LookupService::LookupResult]::<lambda(const 
boost::system::error_code&)>' declared with greater visibility than the type of 
its field 
'pulsar::RetryableOperation<T>::runImpl(pulsar::TimeDuration)::<lambda(pulsar::Result,
 const T&)> [with T = pulsar::LookupService::LookupResult]::<lambda(const 
boost::system::error_code&)>::<this capture>' [-Werror=attributes]
   
   It seems to be a bug for GCC <= 7 abort the visibility of the lambda 
expression might not be affected by the `-fvisibility=hidden` option.
   
   ### Modifications
   
   Add `__attribute__((visibility("hidden")))` to
   `RetryableOperation::runImpl` explicitly.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [ ] `doc-not-needed` 
   (Please explain why)
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to