Jump to content
  • Advertisement
Sign in to follow this  
rviney

Uninitialized variable warning in as_callfunc_x86.cpp

This topic is 2504 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

I'm getting an uninitialized variable warning in as_callfunc_x86.cpp relating to the asQWORD retQW; definition on line 113. Theoretically it could be returned without being set. The other callfunc source files are setting this to zero, I'm assuming it should be being zeroed here as well?

Share this post


Link to post
Share on other sites
Advertisement
Thanks. There is no valid way the function can return without setting the retQW variable, but I guess the compiler is seeing the default case in the switch and think it is something that can happen.

I'll set the variable to 0 to remove the warning.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!