stupid warnings
#1

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?
Reply
#2

Whats in the line 609?

I think you didnt use "ret_memcpy" and "strtok" in any command or something else.
Reply
#3

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.
Reply
#4

yea i know that
Reply
#5

pawn Код:
// On top:
#pragma unused ret_memcpy
#pragma unused strtok
Reply
#6

ty
i knew it was something with pragma but i forgot that unused
Reply
#7

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.
Reply
#8

doesn't matter to me the warnings wont affect my gamemode anyway
Reply
#9

good that this is sorted and we are happy to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)