-
-
Notifications
You must be signed in to change notification settings - Fork 689
Description
Because godot-cpp
is a library used by non-godot code, its external headers should compile without warnings as much as possible. godot-cpp should adapt to the projects using it, not the other way around.
Right now a project can't turn on a lot of warnings without godot-cpp's headers producing a large number of them and it obviously prevents turning on "warnings as errors". Some of this can be worked around by wrapping the godot-cpp includes in the main project, but that's not really a great workaround.
How to choose what warnings to respect is obviously an issue, but most C++ projects seem to have at least -Wall -extra
and /W3
or /W4
on in their own builds. This generally improves code quality & catches bugs.
I would like to suggest that godot-cpp should build cleanly with -Wall -extra
and /W4
and then look at others that can be turned on (there are a bunch already listed in CMakeLists.txt - some of which are already included in -Wall -extra
).
I'm happy to work towards this goal if it will be supported.
(Note: I haven't looked at Scons since I don't use it. No idea how this works there, but maybe it needs to happen there as well.)