You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command line arguments provided (or sampctl version): -D..\gamemodes -d2
Operating System: Win10 64bit
When I compile with on latest compiler version I got tons of warning 239: literal array/string passed to a non-const parameter that related to function in .dll file I can't change.
The text was updated successfully, but these errors were encountered:
related to function in .dll file?
that's a newly added warning message in latest versions of compiler, for const correctness, in order to avoid passing non-const strings or arrays, cause they'll be passed by address and values can be modified.
so in samp-stdlib and pawn-stdlib, functions that does not need that behavior (being passed by reference) have their array/string parameters as const.
Update your samp and pawn includes by using following libraries: https://github.com/pawn-lang/samp-stdlib https://github.com/pawn-lang/pawn-stdlib
for other libraries? use latest version, if they are not const corrected, there's probably a const corrected version somewhere on github like easyDialog (https://github.com/Awsomedude/easyDialog/ , not to mention it still has issues and needs to be fixed fully.). if the library you are using is very old and there's no const corrected version, try fixing it yourself, and it would be very nice if you share it with others as well, it would appreciated.
When I compile with on latest compiler version I got tons of warning 239: literal array/string passed to a non-const parameter that related to function in .dll file I can't change.
The text was updated successfully, but these errors were encountered: