2019-05-04, 05:39 PM
So I've installed the latest version of the pawn compiler and surely enough tons of const correctness warnings started popping up when compiling, most of them from ysi libraries
I took it upon myself to fix most of them, however there is one I don't know how to fix
Here's the compiler warning
And this is the code the error refers to
inside
It seems that the code is calling the memset?function which has a non-const parameter, however because of how vast and complex ysi's libraries are for a novice like me I'm not really sure where to find it and how to fix it
Could anyone help with that? ty
I took it upon myself to fix most of them, however there is one I don't know how to fix
Here's the compiler warning
Code:
INFO: Compiling C:\Users\nonso\Desktop\WaveLS\gamemodes\crimewave.pwn with compiler version 3.10.9
C:\Users\nonso\Desktop\WaveLS\dependencies\YSI-Includes\YSI_Internal\y_funcinc.inc:112 (warning) literal array/string passed to a non-const parameter
And this is the code the error refers to
Code:
memset("", 0, 0);
inside
Code:
public _@_y_funcinc_@_()
{
? yadda yadda...
}
It seems that the code is calling the memset?function which has a non-const parameter, however because of how vast and complex ysi's libraries are for a novice like me I'm not really sure where to find it and how to fix it
Could anyone help with that? ty