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*.
This commit is contained in:
Debarshi Ray 2016-01-29 16:05:16 +01:00
parent 5751b6dcf1
commit b221754325

View File

@ -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 <rishi@fedoraproject.org> - 0.43.0-1
- Update to 0.43.0
- Add BuildRequires on pkgconfig(libpcre2-8)
- Disable -Wnonnull
* Thu Jan 28 2016 Debarshi Ray <rishi@fedoraproject.org> - 0.42.3-1
- Update to 0.42.3