2021-02-23 11:55 PM
Dear,
Is there a way to override compilation warnings of the project properties ?
I enable the "-Wall" and "-Wextra" options in the project properties. But it is global for the project and I have the warning for my specific files (.cpp / .hpp) and the ST library files (.c / .h).
I only want to have the warning for my specific files. Is there a way to do that in the properties with the gcc options without adding pragma or options in the code files ?
Solved! Go to Solution.
2021-02-24 01:16 AM
Such properties are usually handled in a hierarchical way in Eclipse.
Settings defined for one element (e.g. project or folder) automatically apply to subordinate elements (like individual files) - unless explicitly overridden.
2021-02-24 01:13 AM
I don't use CubeIDE, but as a Eclipse-based system, I expect it to be handled the usual way.
Yust right-click on the source file in the "Project Explorer" view, select "Properties", and adapt the build settings there.
2021-02-24 01:16 AM
Such properties are usually handled in a hierarchical way in Eclipse.
Settings defined for one element (e.g. project or folder) automatically apply to subordinate elements (like individual files) - unless explicitly overridden.
2021-02-24 02:13 AM
Thanks
I never see this possibility to set properties for specific folder.
And it seems to work.