Disable strict aliasing

The code is not strict-aliasing clean and gcc warns:

lv_color.c: In function 'visual_color_to_uint16':
lv_color.c:281:18: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
This commit is contained in:
Kalev Lember 2021-01-19 10:28:48 +01:00
parent db453d0293
commit 2393aa20b9

View File

@ -46,6 +46,7 @@ This package contains the files needed to build an application with libvisual.
%patch2 -p1 -b .format-security
%build
%global optflags %{optflags} -fno-strict-aliasing
%configure
%make_build
@ -110,6 +111,7 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
- Use make_build/make_install macros
- Drop unneeded ldconfig_scriptlets macro call
- Remove a no longer needed -mmmx CFLAGS addition
- Disable strict aliasing
* Fri Jan 15 2021 Kalev Lember <klember@redhat.com> - 1:0.4.0-30
- Fix multilib conflicts in lvconfig.h