https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102030
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With -W -Wall I get the following warnings: In file included from /home/joeedh/blender/blender/intern/atomic/atomic_ops.h:138, from /home/joeedh/blender/blender/build/../source/blender/blenlib/intern/BLI_mempool.c:35, from /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:106: /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h: In function 'atomic_cas_ptr': /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:180:52: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:180:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h: In function 'atomic_cas_float': /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:192:52: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:192:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:193:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h: In function 'atomic_add_and_fetch_fl': /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:204:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:204:73: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/intern/atomic/intern/atomic_ops_ext.h:205:44: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c: In function 'BM_mesh_create': /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:122:57: warning: passing argument 4 of 'BLI_mempool_create' makes integer from pointer without a cast [-Wint-conversion] In file included from /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:106: /home/joeedh/blender/blender/build/../source/blender/blenlib/intern/BLI_mempool.c:400:77: note: expected 'unsigned int' but argument is of type 'char *' /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:123:57: warning: passing argument 4 of 'BLI_mempool_create' makes integer from pointer without a cast [-Wint-conversion] In file included from /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:106: /home/joeedh/blender/blender/build/../source/blender/blenlib/intern/BLI_mempool.c:400:77: note: expected 'unsigned int' but argument is of type 'char *' /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:124:57: warning: passing argument 4 of 'BLI_mempool_create' makes integer from pointer without a cast [-Wint-conversion] In file included from /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:106: /home/joeedh/blender/blender/build/../source/blender/blenlib/intern/BLI_mempool.c:400:77: note: expected 'unsigned int' but argument is of type 'char *' /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:125:57: warning: passing argument 4 of 'BLI_mempool_create' makes integer from pointer without a cast [-Wint-conversion] In file included from /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:106: /home/joeedh/blender/blender/build/../source/blender/blenlib/intern/BLI_mempool.c:400:77: note: expected 'unsigned int' but argument is of type 'char *' /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c: In function 'main': /home/joeedh/blender/blender/build/bmesh_mesh_convert_bugreport.c:462:2: warning: null argument where non-null required (argument 1) [-Wnonnull] /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]