Package: sopwith
Severity: normal
Tags: patch

When building 'sopwith' on amd64 with gcc-4.0,
I get the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -g -O2 -I.. -c swsound.c
swsound.c:82: error: static declaration of 'titleflg' follows non-static 
declaration
swmain.h:49: error: previous declaration of 'titleflg' was here
make[4]: *** [swsound.o] Error 1
make[4]: Leaving directory `/sopwith-1.7.1/src'

With the attached patch 'sopwith' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/sopwith-1.7.1/src/swsound.c ./src/swsound.c
--- ../tmp-orig/sopwith-1.7.1/src/swsound.c     2003-06-08 20:20:30.000000000 
+0200
+++ ./src/swsound.c     2005-03-07 13:25:10.452000509 +0100
@@ -79,6 +79,7 @@
 };
 #endif
 
+#define titleflg titleflg_swsound
 static BOOL titleflg;          /* Playing title tune               */
 static int titlplace;          /*  Place in title tune;            */
 static int titlline;           /* Line in title tune               */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to