https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95354
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- No, The place where nonnull attribute is not on the argument itself but rather on the function. See the document at: https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Common-Function-Attributes.html#index-nonnull-function-attribute THIS IS WHY GCC Is warning on that pointer and all.