[SCM] pd-unauthorized/master: Ensure that functions return proper value (Closes: #743737)
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Wed Jun 3 19:09:40 UTC 2015
The following commit has been merged in the master branch:
commit c01e4794c827c7c4bdfb95e66b820635fe03be65
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Wed Jun 3 20:43:05 2015 +0200
Ensure that functions return proper value (Closes: #743737)
Thanks to Nicolas Sévelin-Radiguet for the patch
diff --git a/debian/patches/fix_Wreturn.patch b/debian/patches/fix_Wreturn.patch
new file mode 100644
index 0000000..752702d
--- /dev/null
+++ b/debian/patches/fix_Wreturn.patch
@@ -0,0 +1,38 @@
+Description: fix FTBFS with clang instead of gcc
+ clang is more picky if a function is declared as returning
+ a value and then it doesn't.
+Author: Nicolas Sévelin-Radiguet <nicosr at free.fr>
+Reviewed-by: IOhannes m zmölnig <umlaeute at debian.org>
+Last-Update: 2014-04-05
+
+--- pd-unauthorized.orig/countund.c
++++ pd-unauthorized/countund.c
+@@ -80,7 +80,7 @@
+ if ( flimit < 0 )
+ {
+ post( "countund~: wrong count limit" );
+- return;
++ return NULL;
+ }
+ else
+ {
+@@ -110,7 +110,7 @@
+ }
+ }
+ outlet_float( x->x_obj.ob_outlet, x->x_value );
+- return;
++ return NULL;
+ }
+
+ void countund_setup(void)
+--- pd-unauthorized.orig/randomblock~.c
++++ pd-unauthorized/randomblock~.c
+@@ -76,7 +76,7 @@
+ if ( flimit < 0 || flimit > RAND_MAX )
+ {
+ post( "randomblock~: wrong random limit" );
+- return;
++ return NULL;
+ }
+ else
+ {
diff --git a/debian/patches/series b/debian/patches/series
index e4cd30f..fc31cdb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
fix_hardening.patch
+fix_Wreturn.patch
--
pd-unauthorized packaging
More information about the pkg-multimedia-commits
mailing list