Many compiler warnings are disabled by the “WindowsPlatformCompilerSetup.h”, including but not limited to:
- Unreferenced function paramater.
- Local variable initialized but not used.
- Constexpr function will be called at run-time.
This header gets transitively included into all of our modules where it turns the warnings off as well. So far, I tried the following fixes:
- Enable a set of warnings inside of PCH for a module -> this fails because some of the headers included from the engine will trigger a warning and stop the compilation.
- Include a separate header for enabling warnings into each “.cpp” file in a module (as a last include so that the previous situation does not occur) -> forces a programmer to manually include a header into each “.cpp”.
Is there any better solution how to prevent this from happening so the warnings are enabled for our modules?
[Attachment Removed]