Disable GCC -Wformat-literal in a few places using GCC pragma

Using #pragma GCC diagnostic <...>
from https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html