From 2393aa20b993d8ffd7b5a572d53e0c1bc8f70fd3 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 19 Jan 2021 10:28:48 +0100 Subject: [PATCH] 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] --- libvisual.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvisual.spec b/libvisual.spec index d998a9d..06af537 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -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 - 1:0.4.0-30 - Fix multilib conflicts in lvconfig.h