Options |
What it does |
-l<path> |
Adds <path> to the directories searched by the preprocessor for include file resolution. |
-o <file> |
Generates the named executable (progs.src) file (when not specified default is progs.src). |
-O<level> |
Specfies the optimization level: highest being 3, lowest being 0 (not optimization). |
-E |
Instructs the compiler to only preprocess the input, writing the preprocessed source to stdout |
-Wall |
Enables all compiled warnings for the selcted standard |
-Werror |
Instruct the compiler to treat all warnings as errors |
-std=<standard> |
Selects the standard dialect |
GMQCC strives hard for compatability with standard dialects, but not all
features of those standards might be implemented. The unsupported features
are presented below:
Option |
What it does |
-Wunused-uninitialized |
Enables warnings about unused or uninitialized variables |
-Wunknwon-control-sequence |
Enables warnings about unknown control sequences |
-Wextension |
Enables warnings about the use of (an) extension(s) |
-Wfield-redeclared |
Enables warnings about redeclared fields |
-Wmissing-return-values |
Enables warnings about missing return values |
-Wtoo-few-paramaters |
Enables warnings about missing paramaters for function calls |
-Wlocal-shadows |
Enables warnings about locals shadowing paramaters or other locals |
-Wlocal-constants |
Enables warnings about constants specified as locals |
-Wvoid-variables |
Enables warnings about variables declared as type void |
-Wimplicit-function-pointer |
Enables warnings about implicitly declared function pointers |
-Wvariadic-function |
Enables warnings for use of varadics for non-builtin functions |
-Wframe-macros |
Enables warnings about duplicated frame macros |
-Weffectless-statement |
Enables warnings about effectiveless statements |
-Wend-sys-field |
Enables warnings of end_sys_fields being declared a field |
-Wassign-function-types |
Enables warnings for incompatible function pointer signatures used in assignment |
-Wpreprocessor |
Enables warnings about redefined macros |
-Wmultifile-if |
Enables warnings about multifile if statements |
Individual warnings may be disabled with -Wno<warning>
Having trouble with GMQCC? Join our IRC channel at #kf-engine on irc.freenode.net or contact Us