2016-07-15 87 views

回答

0

尝试:

disablewarnings { "warning" } 

哪里warning是数或编译器警告禁止的名字。

来源:

https://github.com/premake/premake-core/wiki/disablewarnings

[更新]

但是,如果它是一个连接器警告要取消,那么试试这个:

linkoption { "-IGNORE:4221" } 

或者你想禁用的任何链接警告号码。

https://github.com/premake/premake-core/wiki/linkoptions

+0

在使用disablewarnings的示例,请参阅github上:https://github.com/search?l=Lua&q=disablewarnings&ref=opensearch&type=Code – idbrii