cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32CubeIDE] Is there a way to override compilation warnings of the project properties ?

YDann.7
Associate III

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Ozone
Lead II

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.

View solution in original post

3 REPLIES 3
Ozone
Lead II

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.

Ozone
Lead II

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.

YDann.7
Associate III

Thanks

I never see this possibility to set properties for specific folder.

And it seems to work.