Doom-Utils / deutex

WAD composer for Doom, Heretic, Hexen, and Strife
Other
61 stars 17 forks source link

Fix strict aliasing violations #55

Closed jengelh closed 6 years ago

jengelh commented 6 years ago

Type-punning causes unaligned pointers, and those cause crashes on some processors, e.g. sparc64.

deutex.c: In function 'COMhelp': deutex.c:1130:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] width1 = ((short ) &d->exec) + OPTINDENT; etc.

chungy commented 6 years ago

Thanks, merged