convert: Fix compiler warnings
authorStefan Weil <sw@weilnetz.de>
Thu, 29 Oct 2015 08:35:54 +0000 (09:35 +0100)
committermayeut <mayeut@users.noreply.github.com>
Sun, 1 Nov 2015 15:54:38 +0000 (16:54 +0100)
commit7dfcbf9d7b2cb21b753752c06c504b0620191c2a
treee34f22892514a957445f4286775b7a289a85b982
parent4ac509182a00de635e814372ba813851062bedb3
convert: Fix compiler warnings

Fix this and other similar compiler warnings:

src/bin/jp2/convert.c: In function ‘tga_readheader’:
src/bin/jp2/convert.c:595:5: warning:
 dereferencing type-punned pointer will break strict-aliasing rules
 [-Wstrict-aliasing]
     cmap_len = get_ushort(*(unsigned short*)(&tga[5]));

Signed-off-by: Stefan Weil <sw@weilnetz.de>
src/bin/jp2/convert.c