On 10/08/2016 16:42, Manuel López-Ibáñez wrote: > > > My only fear is that people not using -Wpedantic nor -pedantic-errors > > > expect that GNU extensions work. This is a GNU extension that defines > > > something that is undefined according to ISO. Enabling the warning > > > with -Wextra is just annoying those people who may not care about > > > other compilers. > > > > I think this warning falls in the same category as > > -Wshift-negative-value. (In fact I dislike -Wshift-negative-value a > > lot, and would put that one under -Wpedantic only). > > It is not the same category. One is compile-time UB and the other is > runtime UB. See: > https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01551.html > and https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01529.html
Right---what I meant is it's the same kind of "annoying for people who expect that GNU extensions work" warning. Paolo