https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #15 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Martin Uecker from comment #14) > I am happy to revise the warning if it is wrong or annoying, but I do not > understand what C++ has to do with this. In file gcc/c-family/c.opt, is the new text Walloc-size C ObjC Var(warn_alloc_size) Warning LangEnabledBy(C ObjC, Wextra) Warn when allocating insufficient storage for the target type of the assigned pointer. IMHO, it should say: Walloc-size C ObjC Var(warn_alloc_size) Warning LangEnabledBy(C ObjC C++, Wextra) Warn when allocating insufficient storage for the target type of the assigned pointer.