[SCM] radium-compressor/master: Fix build with gcc 4.6

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Fri May 24 12:55:56 UTC 2013


The following commit has been merged in the master branch:
commit bcb5fe507cea5a41d88b41399099dfdbed5cdcae
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Fri May 24 14:33:03 2013 +0200

    Fix build with gcc 4.6
    
    C++ does not allow designated initializers and gcc 4.6 errors out.

diff --git a/debian/patches/0003-gcc4.6-designated-initializers.patch b/debian/patches/0003-gcc4.6-designated-initializers.patch
new file mode 100644
index 0000000..9de1b31
--- /dev/null
+++ b/debian/patches/0003-gcc4.6-designated-initializers.patch
@@ -0,0 +1,17 @@
+Description: Fix compilation with gcc 4.6
+ C++ does not allow C99's designated initializers and gcc 4.6 errors out.
+Author: Sebastian Ramacher <sramacher at debian.org>
+Bug-Debian: http://bugs.debian.org/709228
+Last-Update: 2013-05-24
+
+--- radium-compressor-0.5.1.orig/audio/typepunning.h
++++ radium-compressor-0.5.1/audio/typepunning.h
+@@ -26,7 +26,7 @@ static inline int pun_float_to_int(float
+ }
+ 
+ static inline float pun_int_to_float(int x){
+-  union { uint32_t i; float f; } mx = { .i=(uint32_t)x };
++  union { uint32_t i; float f; } mx = { (uint32_t)x };
+   return mx.f;
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 6ee9804..045e3e2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-buildsystem.patch
 0002-missing_include.patch
+0003-gcc4.6-designated-initializers.patch

-- 
radium-compressor packaging



More information about the pkg-multimedia-commits mailing list