allow "#pragma GCC diagnostic" to be used inside of functions PR: 242693 Reported by: canardo <canardo909@gmx.com>