-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review/fix msvc warnings #44
Conversation
Fixed uninitialized variables
Fixed unreachable code warnings
Adjusted int to std::streamsize
in this case a static function was called through an useless local var
fixed uninitialized vars warnings
Fixes warnings like : (potentially) uninitialized local variable 'name' used
Fixes unreachable code warnings
Fixes warnings like 'conversion' conversion from 'type1' to 'type2', possible loss of data
Fixes warnings like : assignment in conditional expression
Fixes warnings like : unused local variable 'name' or 'name' initialized but never used
Fixes warnings like 'function doesn't return a value' in one or more code-paths
Fixes warnings like : (potentially) uninitialized local variable 'name' used
Fixes warning like 'expression' : signed/unsigned mismatch
Fixes warnings where an invalid value is used in a switch of an enum value
I still have to remove a few xcode warnings. I will work from your branch when it is merged to master. |
compiles under MacOSX. +1 |
Hello, I am not sure that changes in
Anyway +1 for this branch, with or without this change. |
Hello, MSVS 2008 complains about using uninitialized pBuff variable at runtime. OSD/OSD_Environment.cxx, line 261. I fixed it with assigning a zero string ("") to it, works well. |
Thank you for the catch! I'm fixing this in this branch, plus the other modification, and then Qb 2011/6/22 IvaKom
|
Fixed annoying runtime error appearing in MSVC/WIN32 about an uninitialized var
… and more compatible with borland compilers.
Completed "first pass" of warning fixes, probably enough for 0.4, of the MSVC compiler (/W4)
Some warnings remain:
Also , a bug was fixed but to insufficient array size.
I've marked some @todo here and there to mark critical points