-
-
Notifications
You must be signed in to change notification settings - Fork 988
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
Compiler warnings #5350
Comments
How are you building wesnoth? A fix for scons at least was added in d643edc |
It would help a lot to know more about the particular compiler version and platform as well. |
I built from a branch without this commit yet. But I tested again with today's master (63b16ad), and it's the same, with the above remaining unchanged. As compiler I used gcc 10.2. Fun fact: GCC doesn't print |
I guess this will have to wait until GCC 10 is more widely available. I can't test this myself yet, and the commit linked above seems to have fixed this for loonycyborg. |
Are you saying you get stringop-overflow warnings even though it is turned off? |
It happens during linking, scons doesn't pass -Wno-stringop-overflow to the linker. When executing the linking command myself with the option it's turned off. |
Can you show the command? Really seems weird that option would do anything when linking. |
I specified a few custom options: I see in the command the |
Does it happen if you build without LTO enabled? |
No, only with LTO. |
I'm not sure if it's something really fixable by us then, since it feels like it would be incorrect to add that warning suppression to the entire linking step when we only want it to apply to particular source files. |
I guess I'm the only one who gets them … (1.15)
The text was updated successfully, but these errors were encountered: