X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=b0ab51ff6d533838078a614c0af0f81d8f17c359;hp=e2956dcc80a35dd687c1fd0a6d960dae4930aaa4;hb=f2b21158d801e96b5f8d7c9491186267dc75a4dc;hpb=d961cfb8555851c0f25c47450a0b0e44aa24291b diff --git a/gmqcc.ini.example b/gmqcc.ini.example index e2956dc..b0ab51f 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -99,6 +99,14 @@ # 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 + # These are all the warnings, usually present via the -W prefix from # the command line. [warnings] @@ -125,7 +133,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 @@ -205,6 +213,15 @@ # [[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]