Raised This Month: $ Target: $400
 0% 

Warning Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 05-22-2017 , 10:01   Warning Messages
Reply With Quote #1

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 

Last edited by Weetabix; 05-22-2017 at 10:03.
Weetabix is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-22-2017 , 10:55   Re: Warning Messages
Reply With Quote #2

You probably should change the code that throws that warning. Post your code.

Last edited by klippy; 05-22-2017 at 10:55.
klippy is offline
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 05-22-2017 , 16:42   Re: Warning Messages
Reply With Quote #3

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.
Weetabix is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 05-22-2017 , 16:56   Re: Warning Messages
Reply With Quote #4

Remove the if statement then o_________o
Miu is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-22-2017 , 17:44   Re: Warning Messages
Reply With Quote #5

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

Last edited by klippy; 05-22-2017 at 17:44.
klippy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:43.


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