X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=42aec66e880091daed8fe0843021795de436cb4c;hp=b07651d0172c35d404c2b60a40d3de0dccd3e1ff;hb=9a6316221c88250d247b744322d6c690ccf5eec5;hpb=d700bb66b28910b175789eb94f29f917202d95af diff --git a/gmqcc.ini.example b/gmqcc.ini.example index b07651d..42aec66 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -99,6 +99,19 @@ # variables with the name 'nil' to be declared. PREMISSIVE = false + # Allow vararg access from within QC of the form: ...(argnumber, type) + VARIADIC_ARGS = true + + # Most Quake VMs, including the one from FTEQW or up till recently + # Darkplaces, do not cope well with vector instructions with overlapping + # input and output. This option will avoid producing such code. + LEGACY_VECTOR_MATHS = true + + # Builtin-numbers are usually just immediate constants. + # The following allows whole expressions to be used, as long as they + # are compile-time constant. + EXPRESSIONS_FOR_BUILTINS = false + # These are all the warnings, usually present via the -W prefix from # the command line. [warnings] @@ -125,7 +138,7 @@ MISSING_RETURN_VALUES = true # Enables warnings about missing parameters for function calls. - TOO_FEW_PARAMETERS = true + INVALID_PARAMETER_COUNT = true # Enables warnings about locals shadowing parameters or other locals. LOCAL_SHADOWS = true @@ -198,6 +211,22 @@ # Warn about non-constant global variables with no initializing value. UNINITIALIZED_GLOBAL = true + # Redeclaring a 'const' as 'var' or the other way round. + DIFFERENT_QUALIFIERS = true + + # Redeclaring a function with different attributes such as + # [[noreturn]] + DIFFERENT_ATTRIBUTES = true + + # Warn when a function is marked with the attribute + # "[[deprecated]]". This flag enables a warning on calls to functions + # marked as such. + DEPRECATED = true + + # Warn about possible problems from missing parenthesis, like an + # assignment used as truth value without additional parens around. + PARENTHESIS = true + # Finally these are all the optimizations, usually present via the -O # prefix from the command line. [optimizations]