X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=gmqcc.ini.example;h=2b4920c6d19ad55585b67e6911d716c576546eac;hb=451873ae529289f4a22d8bbce6ebf0e074da8f2b;hp=59a27f9a2091476bd7882b41e9bb0984774d7d4f;hpb=624e6201e8c512725f8ee7a9168b21def43df45a;p=xonotic%2Fgmqcc.git diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 59a27f9..2b4920c 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -346,9 +346,17 @@ #expense of additional instructions. SPLIT_VECTOR_PARAMETERS = false + #Force all expressions to be "eraseable" which permits the compiler + #to remove unused functions, variables and statements. This is + #equivlant to putting [[eraseable]] on all definitions. This is + #dangerous as it breaks auto cvars, definitions for functions the + #engine may be looking for and translatable strings. Instead, you + #can mark a definition with [[noerase]] to prevent this from happening. + DEFAULT_ERASEABLE = false + [warnings] #Generate a warning about variables which are declared but never - #used. This can be avoided by adding the ‘noref’ keyword in front + #used. This can be avoided by adding the ‘noref’ keyword in front #of the variable declaration. Additionally a complete section of #unreferenced variables can be opened using ‘#pragma noref 1’ and #closed via ‘#pragma noref 0’. @@ -356,6 +364,11 @@ UNUSED_VARIABLE = false + #Generate a warning about vector variables which are declared but + #components of it are never used. + + UNUSED_COMPONENT = false + #Generate a warning if it is possible that a variable can be used #without prior initialization. Note that this warning is not nec‐ #essarily reliable if the initialization happens only under cer‐