Some GCC versions disallow #pragma inside function body.

@jimis: we should probably have a matching `#pragma GCC diagnostic warning` after the function (or functions) for whose benefit this is included (and, at least, before the `#endif` for TEST_SNPRINTF.