-
Notifications
You must be signed in to change notification settings - Fork 709
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
'for' loop initial declarations in wfcomman.c:538:5 #158
Comments
Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26132 for x86 |
Also there is no |
@clzls AFAIK it is Visual Studio "the latest" ... I have unleashed code analyzer on winfile and that has revealed itself as a very good method. But this is going to be one very long task. I assume the question is how to manage it. This is all for x86 builds. x64? Just switching to that mode unleashes ocean of warnings and few errors, too. The process of removing them (for me at least) will be very close to rewrite ... |
As Craig said in #165 , let's stick with modern compilers and forget my |
'for' loop initial declarations are only allowed in C99 mode. So maybe we should use option -std=c99 or -std=gnu99 in Makefile?
In my opinion it's more like a "modern" C++ style of coding, not a style decades ago. (for example before 90s)
PS. I'm using
mingw32-gcc (GCC) 4.7.2
, a rather old version(I thought it may work for these codes over 20 years old...). After bumping into "internal error" in VS2017, I tried MinGW but I still bumped into hundreds of lines of errors and warnings. Maybe it's all my fault...The text was updated successfully, but these errors were encountered: