X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=gmqcc.ini.example;h=2c63fcd44e0a1f14205e52b9703aec6331a86834;hb=ab64706cc3d8c9a2d1e9ae8c952f7e8ce49d353b;hp=3332231e4dbbd013d1c13c92686c54058028d0cb;hpb=3567abbd64d4cb5a0db5e434955c83a924635d6f;p=xonotic%2Fgmqcc.git diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 3332231..2c63fcd 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -125,7 +125,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 +198,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] @@ -232,3 +248,7 @@ # Do not create a RETURN instruction at the end functions of return-type void. VOID_RETURN = true + + # Turn extraction-multiplications such as (a_vector * '0 1 0') + # into direct component accesses + VECTOR_COMPONENTS = true