diff --git a/binutils.spec b/binutils.spec index 1ffbab7..690740a 100644 --- a/binutils.spec +++ b/binutils.spec @@ -360,7 +360,13 @@ make %{?_smp_mflags} export SUSE_ASNEEDED=0 cd build-dir %ifnarch %arm -make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling} +make -k check \ +%if %{suse_version} > 1020 + CFLAGS="$RPM_OPT_FLAGS -w -Wno-unprototyped-calls" \ +%else + CFLAGS="$RPM_OPT_FLAGS -w" \ +%endif + || %{make_check_handling} %endif # #