An extreme and ugly way would be to just redefine the macros in a way that do not trigger our warnings - e.g. by including the warning toggle switches into the definition. We could also include wrapper includes around the SDL headers that disable the warnings only for the SDL file.
As to this bug report, I believe -Wshadow should be enabled now by default, maybe also -Wswitch-enum from clang - but then we would need to silence it wherever we switch on SDL keycodes in the code base.
An extreme and ugly way would be to just redefine the macros in a way that do not trigger our warnings - e.g. by including the warning toggle switches into the definition. We could also include wrapper includes around the SDL headers that disable the warnings only for the SDL file.
As to this bug report, I believe -Wshadow should be enabled now by default, maybe also -Wswitch-enum from clang - but then we would need to silence it wherever we switch on SDL keycodes in the code base.