stupid warnings - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stupid warnings (
/showthread.php?tid=85402)
stupid warnings -
Pawno_Master - 07.07.2009
i get these 2 stupid warnings
Код:
C:\Gta sa server\gamemodes\freeroam.pwn(609) : warning 203: symbol is never used: "ret_memcpy"
C:\Gta sa server\gamemodes\freeroam.pwn(609) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
i know this doesn't affect my script but it's just irritating me and if i use it anywhere in script i get errors
how can i make the warnings go dissapear?
Re: stupid warnings -
MarqueZ92 - 07.07.2009
Whats in the line 609?
I think you didnt use "ret_memcpy" and "strtok" in any command or something else.
Re: stupid warnings -
SpiderPork - 07.07.2009
Quote:
Originally Posted by MarqueZ92
Whats in the line 609?
|
Line 609 is the last line.
If you don't use something you have defined, it "puts" the warning on the last line.
Re: stupid warnings -
Pawno_Master - 07.07.2009
yea i know that
Re: stupid warnings -
-Sneaky- - 07.07.2009
pawn Код:
// On top:
#pragma unused ret_memcpy
#pragma unused strtok
Re: stupid warnings -
Pawno_Master - 07.07.2009
ty
![Cheesy](images/smilies/biggrin.png)
i knew it was something with pragma but i forgot that unused
Re: stupid warnings -
yom - 07.07.2009
You could also add "stock" prefix in front of the functions names, this way they are not included in the .amx if not used. If i remember correctly, using #pragma unused just hide the warnings but still include the functions in the .amx.
Re: stupid warnings -
Pawno_Master - 07.07.2009
doesn't matter to me the warnings wont affect my gamemode anyway
Re: stupid warnings -
c++rulez - 07.07.2009
good that this is sorted and we are happy to help