http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57241
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> --- In general, it's safe to say that #pragma diagnostic ignored is very buggy (in C++ at least), we have got many long standing PRs.