https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102030
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
BM_mesh_bm_from_me has the nonnull attribute on it for ob saying if ob is a
null argument passed to it undefined behavior will happen. So obviously it
will remove the comparisons.
These warnings here:
/home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c: In function
'BM_mesh_bm_from_me':
/home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:357:6:
warning: 'nonnull' argument 'ob' compared to NULL [-Wnonnull-compare]
/home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:335:6:
warning: 'nonnull' argument 'ob' compared to NULL [-Wnonnull-compare]
/home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:320:3:
warning: 'nonnull' argument 'ob' compared to NULL [-Wnonnull-compare]
Are the important ones to pay attention to.