Package: rockdodger
Severity: normal
Tags: patch

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

cc -g -O2 -Wall `sdl-config --cflags` -DVERSION=\"0.6.0a-debian\" 
-DCOMPILEDATE=\"18/11/02\"   -c -o main.o main.c
main.c:209: error: array type has incomplete element type

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/rockdodger-0.6.0a/main.c ./main.c
--- ../tmp-orig/rockdodger-0.6.0a/main.c        2005-03-18 20:32:28.296465223 
+0100
+++ ./main.c    2005-03-18 20:32:23.625389729 +0100
@@ -206,7 +206,6 @@
 struct bangdots bdot[MAX_BANG_DOTS], *bdotptr=bdot;
 struct spacedot sdot[MAX_SPACE_DOTS];
 
-struct greeble greeb[MAX_GREEBLES];
 struct greeble {
     int active;
     float x,y; // When landed, these represent an offset from the host rock
@@ -214,6 +213,7 @@
     int landed;
     int boredom; // Goes up while landed
 };
+struct greeble greeb[MAX_GREEBLES];
 // }}}
 
 void init_greeblies() {


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

Reply via email to