-Wundef and -Werror=undef aren't working together in MinGw 4.4.1

倖福魔咒の 提交于 2019-12-24 10:59:54

问题


According to the GCC documentation -Wundef emits a warning when an undefined identifier is used in a #if directive and -Werror= displays the specified warning as error

But they are not working together in MinGW 4.4.1. Although -Wundef works and -Werror (to display all warnings as error) work.

Is this a known issue? Any workarounds available?


回答1:


Looks like there's a problem with MinGW 4.4.1 Worked like a charm in 4.6.2



来源:https://stackoverflow.com/questions/13953707/wundef-and-werror-undef-arent-working-together-in-mingw-4-4-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!