Why Codwarrior complains: "WARNING: Option -w with parameter all appears twice."

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

Why Codwarrior complains: "WARNING: Option -w with parameter all appears twice."

跳至解决方案
2,129 次查看
yuxiangzhang
Contributor I

Hi Dear friends,

 

I met a problems with Codewarrior 10.5.2 where it continue reporting "WARNING: Option -w with parameter all appears twice." even if the build is successfully.

posted part of args file as below, from my view, there is no such “-Wall” twice in there, but "-Wall -Wmwfe-all" instead. Would SCC only accept Wall or wmwfe-all, but not both of them? is this a mistake of scc?

 

-arch bsc9131 -be -mh -slld -dm "$(BIN)/xxxx.map" -mem "$(ProjDirPath)/Linker_Command/9131/os_psc9x31_link.l3k" -Xlnk "-DONBOARD_DDR_SIZE=1024 -reread-lib -ignore-machine-model-specification -display-info1-in-map -enable-warn-placing-section-on-first-fit-basis -o2-place" -env "$(SCEnvironmentEnv)" -use-license-file "$(SCLicenseFile3900Env)" -slld -Wall -Wmwfe-all -Wnomwfe-error -Wlnk-progbits-after-nobits -Wlnk-stack-effect

 

Regards,

Alan

标签 (1)
0 项奖励
回复
1 解答
1,670 次查看
jorge_plascencia
NXP TechSupport
NXP TechSupport

Hi Zhang,

-Wall includes –Wmwfe-all option, this is why the warning is generated.

To correct it, it is enough to remove the –Wmwfe-all option.


Regards,


在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,670 次查看
yuxiangzhang
Contributor I

hi Jorge and Lumin,

Thanks for the help. and Sorry for the late response, I believe the issues are been solved by your suggestions.

Cheers,

Alan

0 项奖励
回复
1,671 次查看
jorge_plascencia
NXP TechSupport
NXP TechSupport

Hi Zhang,

-Wall includes –Wmwfe-all option, this is why the warning is generated.

To correct it, it is enough to remove the –Wmwfe-all option.


Regards,


0 项奖励
回复
1,670 次查看
lunminliang
NXP Employee
NXP Employee

"-Wmwfe-all" is an instance of -Wparameter-<keyword> to enable all warnings on compiler front end.

You can try "-Wno1408" in "To shell" box to avoid this option appear twice warning from display.

pastedImage_0.png