Make pragma GCC diagnostic push/pop conditional