• Advertisement
Sign in to follow this  

Disable warning by type ?

This topic is 1922 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi smile.png
exemple: Signed/Unsigned mismatch - it's not warning for me



int cur_index;

if( cur_index > array.size() )
{
}

need write

if( cur_index > int( array.size() ) )
{
}



a do not can ignore by msg->message as this:



void ScriptBuildClient::MessageCallback(const asSMessageInfo *msg, void *param)
{
if( msg->message == Str( "Signed/Unsigned mismatch" ) )
{
return;
}
}

on warning i have 2 lines about this, first it "Signed/Unsigned mismatch" and second it name method where is! Edited by FDsagizi

Share this post


Link to post
Share on other sites
Advertisement
I have thought about adding ways of disabling individual warnings before, but it's not really something I'm putting high up on my to-do list.

Share this post


Link to post
Share on other sites
Ok smile.png

Wat you think about refractoring code ?

On current time, for me it is realy need functionality.

Share this post


Link to post
Share on other sites
If you want to remove this warning yourself, you can just comment out the following two lines in the code:


if( signMismatch )
Warning(TXT_SIGNED_UNSIGNED_MISMATCH, node);


You'll find it in as_compiler.cpp around line 10789.

If the warning is not sent to the message callback, then the the information message with "Compiling XXX" won't be sent either (unless there are other warnings or errors).

Share this post


Link to post
Share on other sites
so next warning abaut this history smile.png

"Implicit conversion of value is not exact"

script:

int w = 1920.0 * 0.3;

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement