Hi,
I'm working in multiple C++ projects in one workspace. All projects are not managed by Eclipse. They are imported as "Existing Code as Makefile Project".
The projects are packaged and built by Maven. Maven calls make at some point. make calls g++ with
-Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wpedantic -Wconversion -Wsign-conversion -Wlogical-op -Wuseless-cast -Wdouble-promotion -Wformat=2
Now I've noticed that sometimes, probably after the build, Eclipse displays compiler warnings. I think the warnings are somehow read from the artifacts. I'm talking about warnings like:
- conversion to 'int' from 'mytype {aka unsigned int}' may change the sign of the result [-Wsign-conversion]
- conversion to 'int' from 'double' may alter its value [-Wconversion]
- 'var' should be initialized in the member initialization list [-Weffc++]
After I clean a project that displayed these warnings the warnings are gone. I have to build that project to get these warnings back. But it does not work for most projects. Only some projects display these warnings.
How can I enable these warnings for all projects?
[Updated on: Wed, 11 September 2019 06:46] by Moderator