Fix build with -Werror=format-security

epel9
Dan Vrátil 11 years ago
parent 92a220c5e3
commit ecb16a042f

@ -0,0 +1,13 @@
diff --git a/libaccounts-glib/ag-provider.c b/libaccounts-glib/ag-provider.c
index 426cb2c..187614b 100644
--- a/libaccounts-glib/ag-provider.c
+++ b/libaccounts-glib/ag-provider.c
@@ -441,7 +441,7 @@ ag_provider_get_plugin_name (AgProvider *provider)
gboolean
ag_provider_get_single_account (AgProvider *provider)
{
- g_return_val_if_fail (provider != NULL, NULL);
+ g_return_val_if_fail (provider != NULL, FALSE);
return provider->single_account;
}

@ -6,6 +6,7 @@ Summary: Accounts framework for Linux and POSIX based platforms
License: LGPLv2
URL: https://code.google.com/p/accounts-sso/
Source0: https://accounts-sso.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: libaccounts-glib-1.16-build-with-werror.patch
BuildRequires: dbus-glib-devel
BuildRequires: libxml2-devel
BuildRequires: sqlite-devel
@ -38,6 +39,8 @@ The %{name}-docs package contains documentation for %{name}.
%prep
%setup -q
%patch0 -p1 -b .werror
%build
gtkdocize
autoreconf -i --force
@ -45,7 +48,6 @@ autoreconf -i --force
%configure --disable-static \
--disable-gtk-doc
sed -i 's/-Werror//g' libaccounts-glib/Makefile
make %{?_smp_mflags}
%install

Loading…
Cancel
Save