-
-
Notifications
You must be signed in to change notification settings - Fork 617
disablewarnings
Johannes Spohr edited this page May 26, 2017
·
5 revisions
Disables specific compiler warnings.
disablewarnings { "warnings" }
warnings
is a list of warnings to disable.
For Visual Studio, the MSC warning number should be used to specify the warning. On other compilers, the warning should be identified by name.
Project configurations.
Premake 5.0 or later.
Disable the GCC warning about using old-style C casts (-Wno-old-style-cast
command line argument):
filter "options:cc=gcc"
disablewarnings "old-style-cast"