Disable -Wcast-align which causes problems with gtk-doc scanner on arm7

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-02-15 14:41:19 +00:00
parent 6f336dedcc
commit f203fc1321
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -rup libvirt-glib-4.0.0.orig/meson.build libvirt-glib-4.0.0.new/meson.build
--- libvirt-glib-4.0.0.orig/meson.build 2021-02-15 12:23:04.609036200 +0000
+++ libvirt-glib-4.0.0.new/meson.build 2021-02-15 14:39:27.150071607 +0000
@@ -175,7 +175,6 @@ cc_flags += [
'-Wbuiltin-declaration-mismatch',
'-Wbuiltin-macro-redefined',
'-Wcannot-profile',
- '-Wcast-align',
'-Wcast-align=strict',
'-Wcast-function-type',
'-Wchar-subscripts',

View File

@ -7,6 +7,7 @@ Summary: libvirt glib integration for events
License: LGPLv2+
URL: https://libvirt.org/
Source0: https://libvirt.org/sources/glib/%{name}-%{version}.tar.xz
Patch1: %{name}-%{version}-cast-align.patch
BuildRequires: meson
BuildRequires: glib2-devel
@ -64,6 +65,7 @@ managing virtualization host objects
%prep
%setup -q
%patch1 -p1
%build
%meson -Drpath=disabled