http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56815
--- Comment #16 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-04-03 12:12:15 UTC --- BTW, I also see that in c-family/c.opt -Wpointer-arith is not LangEnabledBy(C ObjC C++ ObjC++,Wpedantic). If it was, then -Werror=pedantic will automatically handle -Werror=pointer-arith (and the same when using #pragma GCC diagnostic). So, this is one of the bugs that prevent -pedantic-errors == -Werror=pedantic.