   How Do I Ignore warnings
  How can I stop the compiler from giving me these error messages?I know what I am doing, I just dont want to see the warning messages come up.C:\Documents and Settings\Owner\Desktop\Programming\insanecombat\dsdkmain.cpp(642) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   
  Looks like VS, so: "#pragma warning(disable : 4244)"   ;  Manually do the cast:int i = (int)someFloat;In general, its better to have your warnings at the higest possible Value, to help prevent bugs.   ;  By fixing them. ;)   ;  By not looking at them :)   ;  Warnings are telling you that you might be doing something bad, there are ways to fix them and that is always the best solution.  Just ignoring them is not a good idea, they could come and bite you late on.theTroll   ;  Yeah, I find warnings are inelegant. Try to strive for warning-free code. It's usually something trivial, like comparing vector<blah>::size() to an int (instead of a size_t), but still...   ;Quote:Original post by rip-offManually do the cast:int i = (int)someFloat;float f = static_cast<float>(someInt);:p   