-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed some warnings #2306
Fixed some warnings #2306
Conversation
Updated style per guidelines
Classes that have a pure virtual member cannot be constructed as the most-derived type of an object. Their constructors are always called indirectly from derived constructors. Initializing virtual bases in these constructors is effectively dead code since virtual bases can only be initialized by the most-derived type. Some compilers, with some warning settings, generated warnings for this.
Hard to review, do you have some examples of the warnings? |
See commit comments 70c1a78 and log from GitHub Actions https://github.com/OpenDDS/OpenDDS/actions/runs/12284870208/job/34281667576?pr=4867#step:14:1283 |
Currently pretty busy, when this doesn't break a thing ok for me. |
We can eventually add some CI builds in ACE_TAO that use higher warning levels. |
Fixed some warnings (cherry picked from commit 5997007) # Conflicts: # TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
Our builds show a lot of new warnings, see for example https://download.remedy.nl/buildlogs/rhel80_acetao_debug
|
So the different compilers are contradicting each-other? Maybe we need a preprocesor conditional. |
Or maybe use C++11 |
How would |
I am on my phone without the generated code, but in taox11 we generate most copy/assingment as default so we let the compiler figure out the implementation, maybe that can be done in tao also? |
For the default constructor, |
Did a quick a test on the Hello test, changing the copy constructor to |
Was there a similar warning for the default constructor? |
Only for the copy constructor at this moment |
These warnings impact downstream projects since they're in headers and generated code.