2016-07-15 71 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