Commit fc121e7b authored by Martin Nordholts's avatar Martin Nordholts

Disable strict aliasing where we break aliasing rules

Add -fno-strict-aliasing to CFLAGS for files where we get
"dereferencing type-punned pointer will break strict-aliasing
rules"-warnings.
parent 27471e1f
......@@ -1073,6 +1073,8 @@ file_desktop_link_LDADD = \
$(INTLLIBS) \
$(file_desktop_link_RC)
file_dicom_CFLAGS = -fno-strict-aliasing
file_dicom_SOURCES = \
file-dicom.c
......
......@@ -51,7 +51,7 @@
'file-compressor' => {},
'file-csource' => { ui => 1 },
'file-desktop-link' => {},
'file-dicom' => { ui => 1 },
'file-dicom' => { ui => 1, cflags => '-fno-strict-aliasing' },
'file-gbr' => { ui => 1 },
'file-gif-load' => {},
'file-gif-save' => { ui => 1 },
......
......@@ -18,6 +18,7 @@ file_fits_RC = file-fits.rc.o
endif
AM_LDFLAGS = $(mwindows)
AM_CFLAGS = -fno-strict-aliasing
libexecdir = $(gimpplugindir)/plug-ins
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment