diff --git a/bash-4.1-non_void.patch b/bash-4.1-non_void.patch new file mode 100644 index 00000000..6369a72e --- /dev/null +++ b/bash-4.1-non_void.patch @@ -0,0 +1,11 @@ +--- bashline.c 2010/03/01 23:44:28 1.1 ++++ bashline.c 2010/03/01 23:44:47 +@@ -3421,7 +3421,7 @@ + putx(c) + int c; + { +- putc (c, rl_outstream); ++ return putc (c, rl_outstream); + } + + static int diff --git a/bash.changes b/bash.changes index 5ed4d61c..65449c27 100644 --- a/bash.changes +++ b/bash.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 2 00:45:53 CET 2010 - ro@suse.de + +- fix warning no return statement in function returning non-void + to fix build (in bashline.c) + ------------------------------------------------------------------- Wed Feb 24 09:55:03 CET 2010 - werner@suse.de diff --git a/bash.spec b/bash.spec index 24c69f5b..dfcb92b6 100644 --- a/bash.spec +++ b/bash.spec @@ -63,6 +63,7 @@ Patch24: readline-6.0-metamode.patch Patch30: readline-6.1-destdir.patch Patch40: bash-4.1-bash.bashrc.dif Patch41: bash-4.1-intr.dif +Patch42: bash-4.1-non_void.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -306,6 +307,7 @@ unset p %patch24 -p0 -b .metamode %patch40 -p0 -b .bashrc %patch41 -p0 -b .intr +%patch42 -p0 -b .non_void %patch0 -p0 cd ../readline-%{rl_vers} for p in ../readline-%{rl_vers}-patches/*; do