From b221754325b382a181c4a633f0a405a88bc417f7 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 29 Jan 2016 16:05:16 +0100 Subject: [PATCH] Disable -Wnonnull Using g_return_* to assert that a __nonnull__ parameter is indeed not NULL triggers -Wnonnull. This breaks the build because -Wformat includes -Wnonnull and we use -Werror=format*. --- vte291.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vte291.spec b/vte291.spec index a72ff8b..e780e96 100644 --- a/vte291.spec +++ b/vte291.spec @@ -60,7 +60,7 @@ emulator library. %patch100 -p1 -b .command-notify %build -CFLAGS="%optflags -fPIE -DPIE" \ +CFLAGS="%optflags -fPIE -DPIE -Wno-nonnull" \ CXXFLAGS="$CFLAGS" \ LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now -pie" \ %configure \ @@ -103,6 +103,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la * Fri Jan 29 2016 Debarshi Ray - 0.43.0-1 - Update to 0.43.0 - Add BuildRequires on pkgconfig(libpcre2-8) +- Disable -Wnonnull * Thu Jan 28 2016 Debarshi Ray - 0.42.3-1 - Update to 0.42.3