Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualjeff8j

Posted 26 June 2013 - 10:02 AM

I am compiling with emscripten and getting a warning that doesnt seem to matter and no matter what I do I cant workaround it and so im just trying to hide it so I dont have to waid through a bunch of warnings to find errors when they occur.

 

The warning im getting is this

Warning: Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)
Warning: See https://github.com/kripken/emscripten/wiki/CodeGuidlinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts

I would be happy to find a solution rather than hiding the warnings but I dont think its possible without alot of changes.

Here is part of freetype that is causing this error

cur = (const FT_Module_Class* const*)FT_DEFAULT_MODULES_GET;

No matter how I change it I cant workaround the warning.

 

Heres how im compiling my code

emscripten-master/em++ -s FULL_ES2=1 --minify 1 -w -fpermissive entry.cpp -o "out.html"

 

So a solution or help hiding this warning would be greatly appreciated! Thanks


#1jeff8j

Posted 26 June 2013 - 09:59 AM

I am compiling with emscripten and getting a warning that doesnt seem to matter and no matter what I do I cant workaround it and so im just trying to hide it so I dont have to waid through a bunch of warnings to find errors when they occur.

 

The warning im getting is this

Warning: Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)
Warning: See https://github.com/kripken/emscripten/wiki/CodeGuidlinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts

 

I would be happy to find a solution rather than hiding the warnings but I dont think its possible without alot of changes.

Here is part of freetype that is causing this error

cur = (const FT_Module_Class* const*)FT_DEFAULT_MODULES_GET;

No matter how I change it I cant workaround the warning.

 

So a solution or help hiding this warning would be greatly appreciated! Thanks


PARTNERS