diff options
author | rillig <rillig> | 2007-05-23 11:44:36 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-05-23 11:44:36 +0000 |
commit | bcd1c7ce92d777fc7d271caac42cc9bee9c5e874 (patch) | |
tree | d040e6965b2a9095c791aeabca1e5b0d1cc13efa /audio/xmms-synaesthesia/patches | |
parent | a3c49acb51be09d90eefae63981d59adf297a0bf (diff) | |
download | pkgsrc-bcd1c7ce92d777fc7d271caac42cc9bee9c5e874.tar.gz |
Fixed the gcc4 error messages and a warning about undefined behavior.
Diffstat (limited to 'audio/xmms-synaesthesia/patches')
-rw-r--r-- | audio/xmms-synaesthesia/patches/patch-synacore | 23 | ||||
-rw-r--r-- | audio/xmms-synaesthesia/patches/patch-synah | 20 |
2 files changed, 43 insertions, 0 deletions
diff --git a/audio/xmms-synaesthesia/patches/patch-synacore b/audio/xmms-synaesthesia/patches/patch-synacore new file mode 100644 index 00000000000..3b3e9b3565e --- /dev/null +++ b/audio/xmms-synaesthesia/patches/patch-synacore @@ -0,0 +1,23 @@ +$NetBSD: patch-synacore,v 1.1 2007/05/23 11:44:36 rillig Exp $ + +gcc4 complains about possibly undefined behavior in line 161. + +--- syna_core.c.orig 2001-04-26 22:46:13.000000000 +0200 ++++ syna_core.c 2007-05-23 13:27:21.000000000 +0200 +@@ -158,14 +158,13 @@ static void fadeFade() + /* //Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4;*/ + if (*ptr) + /* //if (*ptr & 0xf0f0f0f0ul)*/ +- *(ptr++) -= ++ *ptr -= + ((*ptr & 0xf0f0f0f0ul) >> 4) + + ((*ptr & 0xe0e0e0e0ul) >> 5); + /* //else { + // *(ptr++) = (*ptr * 14 >> 4) & 0x0f0f0f0ful; + //}*/ +- else +- ptr++; ++ ptr++; + } + while (--i > 0); + } diff --git a/audio/xmms-synaesthesia/patches/patch-synah b/audio/xmms-synaesthesia/patches/patch-synah new file mode 100644 index 00000000000..24736bea5bb --- /dev/null +++ b/audio/xmms-synaesthesia/patches/patch-synah @@ -0,0 +1,20 @@ +$NetBSD: patch-synah,v 1.1 2007/05/23 11:44:36 rillig Exp $ + +These macros are used as lvalues, but were defined as rvalues. The type +casts are unnecessary as well. + +--- syna.h.orig 2001-04-26 20:39:58.000000000 +0200 ++++ syna.h 2007-05-23 13:41:55.000000000 +0200 +@@ -52,9 +52,9 @@ + + /* core */ + extern guint16 *synx_output[3]; +-#define output ((guchar*)(synx_output[0])) +-#define lastOutput ((guchar*)(synx_output[1])) +-#define lastLastOutput ((guchar*)(synx_output[2])) ++#define output (synx_output[0]) ++#define lastOutput (synx_output[1]) ++#define lastLastOutput (synx_output[2]) + + #define fadeMode (synx_cfg.fadeMode) + #define starSize (synx_cfg.starSize) |