Debug build should use -Og
Problem: Not all Warnings in gcc function properly without Optimization: https://stackoverflow.com/questions/47307538/why-gcc-does-not-report-uninitialized-variable/47308887#47308887
An example where the Debug build shows no warnings but the Release build does can be found attached.
This behaviour would be fixed by passing -Og so the Optimizer is run.
Edited by CFun