Errors and warnings on compile (FIXES_SilentKick, FIXES_Debug and FIXES_EnableDeprecated)
Veseon opened this issue · 3 comments
Veseon commented
Code:
#include <a_samp>
#define FIXES_SilentKick 1
#define FIXES_Debug 1
#define FIXES_EnableDeprecated
#include <fixes>
Output:
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:4567 (warning) redefinition of constant/macro (symbol "SPECIAL_ACTION_PISSING")
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:4580 (error) symbol already defined: "IsValidVehicle"
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:4593 (error) symbol already defined: "GetGravity"
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:4606 (error) symbol already defined: "gpci"
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:8821 (warning) tag mismatch: expected tag "bool", but found none ("_")
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:8821 (warning) tag mismatch: expected tag "bool", but found none ("_")
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\dependencies\sa-mp-fixes\fixes.inc:8821 (warning) tag mismatch: expected tag "bool", but found none ("_")
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\gamemodes\main.pwn:3979 (warning) symbol is never used: "FIXES_gscNULL"
D:\Users\Veseon\Desktop\Veseon\moblife-roleplay\gamemodes\main.pwn:3848 (warning) symbol is never used: "FIXES_pvarPlayerDialog"
Y-Less commented
That's not actually a bug. It's not well documented, but FIXES_EnableDeprecated
enables fixes that are normally disabled because they are no longer needed (i.e. they've been fixed in the server already). So you're getting all those errors because you've enabled fixes that shouldn't really be enabled. TBH I'm not really sure why we even need that define...
Y-Less commented
The unused warnings are because you enabled FIXES_Debug
, which is the internal debug mode.
Y-Less commented
I fixed the tag mismatches though. Thanks.