Advertisement

Uninitialized variable warning in as_callfunc_x86.cpp

Started by February 05, 2012 11:19 AM
0 comments, last by WitchLord 12 years, 9 months ago
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?
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.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement