AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Warning Messages (https://forums.alliedmods.net/showthread.php?t=297733)

Weetabix 05-22-2017 10:01

Warning Messages
 
Is there some sort of compiler derivative (if that's the right word "#pragma" as an example) to block a certain warning?

E.g
PHP Code:

warning 206redundant testconstant expression is non-zero 


klippy 05-22-2017 10:55

Re: Warning Messages
 
You probably should change the code that throws that warning. Post your code.

Weetabix 05-22-2017 16:42

Re: Warning Messages
 
I can't remove the warning since they come from an if statement where the condition is a constant. Just want to know if I can suppress the warning.

Miu 05-22-2017 16:56

Re: Warning Messages
 
Remove the if statement then o_________o

klippy 05-22-2017 17:44

Re: Warning Messages
 
If it's a constant might as well use #if then as it can be resolved at compile-time. Anyway, better post your code.


All times are GMT -4. The time now is 09:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.