official-stockfish / Stockfish Public
forked from mcostalba/StockfishNew 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
Compiler warning on MinGW gcc 8.1.0 #1619
Comments
|
That should be easy to fix but i don't have an msvc compiler, maybe @mstembera can help ? |
|
@Hanamuke These are Mingw/gcc 8.1.0 warnings not msvc. |
|
I think it's a rather stupid warning of gcc. I don't think there is any "right" way to do the cast that does not result in bogus warnings. (Feel free to prove me wrong, though!) It is possible (at least in C) to cast first to void (*)(void), then to the desired type, but in my view that is just a hack. |
|
In C++, I think one should use |
official-stockfish#1619 No functional change. bench: 4980482
|
The gcc 8 release notes ( https://gcc.gnu.org/gcc-8/changes.html ) indicate that there is a new flag ==> @man4 , @mstembera If you have access to gcc 8, could you try to edit the makefile and compile the current master with |
|
Here are the relevant warnings: I've attached the full stderr output too (which contains warnings for all old-style casts): I tried naively changing all the casts to |
Changing |
I'm getting the following compiler warning on MinGW, gcc 8.1.0 (which didn't appear in gcc 7.3.0):
According to the release notes for gcc 8, the option
-Wextrais responsible for this warning.The text was updated successfully, but these errors were encountered: