Package: vice
Severity: normal
Tags: patch

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

video.c:104: warning: cast from pointer to integer of different size
video.c: At top level:
video.c:207: error: static declaration of '_video_gc' follows non-static 
declaration
videoarch.h:110: error: previous declaration of '_video_gc' was here
video.c:208: warning: function declaration isn't a prototype
make[7]: *** [video.o] Error 1
make[7]: Leaving directory `/vice-1.16/src/arch/unix/x11'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/vice-1.16/src/arch/unix/x11/videoarch.h 
./src/arch/unix/x11/videoarch.h
--- ../tmp-orig/vice-1.16/src/arch/unix/x11/videoarch.h 2003-10-18 
20:43:40.000000000 +0200
+++ ./src/arch/unix/x11/videoarch.h     2005-02-13 18:57:27.239334853 +0100
@@ -107,7 +107,6 @@
 };
 typedef struct video_canvas_s video_canvas_t;
 
-extern GC _video_gc;
 extern int _video_use_xsync;
 
 /* ------------------------------------------------------------------------- */
diff -urN ../tmp-orig/vice-1.16/src/petcat.c ./src/petcat.c
--- ../tmp-orig/vice-1.16/src/petcat.c  2004-08-22 21:49:06.000000000 +0200
+++ ./src/petcat.c      2005-02-13 19:15:58.414453624 +0100
@@ -969,7 +969,7 @@
 
         /* prevent list protection from terminating listing */
 
-        while (((int)c = getc(source)) != EOF && !c);
+        while ((c = getc(source)) != EOF && !c);
 
         if (c == 0x12 && !line[2] && !line[3]) {  /* 00 00 12 22 */
             directory++;
@@ -1064,7 +1064,7 @@
 
             _p_toascii((int)c, ctrls);  /* convert character */
 
-        } while (((int)c = getc(source)) != EOF && c);
+        } while ((c = getc(source)) != EOF && c);
         fprintf(dest, "\n");
 
     }      /* line */


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

Reply via email to