> If a warning message is considered not fixable, or not desirable to fix, it’s preferable to remove the associated flag from the build chain.
I like to use diagnostic pragmas (https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html) in the vanishingly rare cases where I can't fix the cause of a warning.