Skip to content
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

-Woverloaded-virtual triggers #586

Closed
mihails-strasuns opened this issue Mar 2, 2014 · 6 comments
Closed

-Woverloaded-virtual triggers #586

mihails-strasuns opened this issue Mar 2, 2014 · 6 comments

Comments

@mihails-strasuns
Copy link
Contributor

Have noticed while repackaging last release there there are lot of warnings printed like this:

[  9%] Building CXX object CMakeFiles/LDCShared.dir/gen/typinf.cpp.o
In file included from /build/ldc/src/ldc/gen/typinf.cpp:32:0:
/build/ldc/src/ldc/dmd2/module.h:57:18: warning: 'virtual void Package::semantic(Scope*)' was hidden [-Woverloaded-virtual]
     virtual void semantic(Scope *sc) { }
                  ^
/build/ldc/src/ldc/dmd2/module.h:145:10: warning:   by 'void Module::semantic()' [-Woverloaded-virtual]
     void semantic();    // semantic analysis

It looks like effectively a false positive because parameter sets are different but you may want to do something with flooding the compilation log :)

@redstar
Copy link
Member

redstar commented Mar 23, 2014

Yes, it is a false positive. Root cause is the DMD frontend source which is compiled with almost no warnings enabled. In contrast, the genuine LDC parts are compiled with -Wall -Wextra. I think I will disable some more warnings....

@dnadlinger
Copy link
Member

I'd prefer to fix these bugs once and for all in the upstream source, though. Then again, since the frontend is going to be switched to D eventually…

@dnadlinger
Copy link
Member

What I originally planned to do was to add in pairs warning enabling/disabling pragmas around the DMD includes in all the LDC source files.

@redstar
Copy link
Member

redstar commented Mar 24, 2014

I also thought to do this....

redstar pushed a commit that referenced this issue Sep 27, 2014
Add FreeBSD header sys/elf.h
@mihails-strasuns
Copy link
Contributor Author

Is there any point in keeping this open?

@dnadlinger
Copy link
Member

Not really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants