https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114306
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the warning is correct as: (condA>0 ? cont->value : (int*)NULL) Here cont->value can never be null due to c rules. The above can be simplified to just `condA>0` then. See pr 102967 too.