Sign in to follow this  
kunitoki

compiler warnings

Recommended Posts

i've registered a lot of functions that works with floats (cause my objects use floats and not doubles in the cases where rounding errors can be forgotten). when i write scripts i come up with a lot of warnings stating that there is a loss of precision in doing a double to float conversion. there is the possibility to turn off some of the compiler warnings ? would be gr8 to have some functions in the script engine to turn off or on some or all warning messages. i know i can filter them in the output stream, but then i've to filter out string something like "if(errorString.contains('Warning')) return;", and i don't like this type of approach. p.s. wip 4 has extremely useful functions... keep up the good work !

Share this post


Link to post
Share on other sites
I've been thinking about this lately, and I think I'll implement some way of turning off the warnings. At least through a compile time flag. Later on I may allow a more dynamic way of doing it.



Share this post


Link to post
Share on other sites
gr8 thanx ;)
maybe would be a useful (and easy) change to have the compiler output stream to take also the code of the error/warning besides the string, so the caller could filter errors and warning differently... maybe...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this