Treat linker warnings as errors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Treat linker warnings as errors

跳至解决方案
1,562 次查看
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?

标签 (1)
1 解答
1,258 次查看
TICS_Fiona
NXP Employee
NXP Employee

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

在原帖中查看解决方案

2 回复数
1,259 次查看
TICS_Fiona
NXP Employee
NXP Employee

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

1,258 次查看
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 项奖励