Treat linker warnings as errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Treat linker warnings as errors

Jump to solution
2,068 Views
twp
Contributor III

When using the PowerPC linker in CodeWarrior 10.4 (eclipse based), it generates a warning if sections overlap.  Is there a way to change this to be reported as an error?


I've had a look through the tool settings for the PowerPC linker but cannot see any option that would convert warnings to errors.  Is it possible to modify the Freescale Linker Error Parser?

Labels (1)
1 Solution
1,764 Views
TICS_Fiona
NXP Employee
NXP Employee

Please add '-w err' option in PowerPC linker settings, just as the attached screenshot.

View solution in original post

2 Replies
1,765 Views
TICS_Fiona
NXP Employee
NXP Employee

Please add '-w err' option in PowerPC linker settings, just as the attached screenshot.

1,764 Views
kannank
Contributor I

Is there any option to treat particular warning alone as error?

I was expecting options to treat specific warning (OR) specific group of warnings only as an error.

[Ref: Visual studio - https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level]

If you find/know similar options in code warrior, let me know.

0 Kudos
Reply