Re: [AD] gcc-4.0.0 problems

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Milan Mimica wrote:

I've got some problems when cimpiling allegro-4.2.0b2 with latest stabile gcc.

Some warings:
./src/fli.c: In function 'do_fli_256_color':
./src/fli.c:346: warning: pointer targets in assignment differ in signedness

...

...and errors:
./src/gui.c: In function 'update_menu':
./src/gui.c:1826: error: invalid storage class for function 'shutdown_single_menu' ./src/gui.c:2044: warning: implicit declaration of function 'shutdown_single_menu'
./src/gui.c: At top level:
./src/gui.c:2087: error: static declaration of 'shutdown_single_menu' follows non-static declaration ./src/gui.c:2044: error: previous implicit declaration of 'shutdown_single_menu' was here


There might be more but build process hangs on these errors.


This patch should fix those files.  Any more?

Peter
Index: src/fli.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/fli.c,v
retrieving revision 1.15
diff -u -r1.15 fli.c
--- src/fli.c	1 Feb 2005 13:12:10 -0000	1.15
+++ src/fli.c	26 Apr 2005 22:54:19 -0000
@@ -96,7 +96,7 @@
 static FLI_HEADER fli_header;          /* header structure */
 static FLI_FRAME frame_header;         /* frame header structure */
 
-static char _fli_broken_data[3 * 256]; /* data substituted for broken chunks */
+static unsigned char _fli_broken_data[3 * 256]; /* data substituted for broken chunks */
 
 
 
Index: src/gui.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/gui.c,v
retrieving revision 1.75
diff -u -r1.75 gui.c
--- src/gui.c	20 Apr 2005 10:54:56 -0000	1.75
+++ src/gui.c	26 Apr 2005 22:54:21 -0000
@@ -60,6 +60,10 @@
 static struct al_active_dialog_player *current_active_dialog_player = 0;
 
 
+/* forward declarations */
+static int shutdown_single_menu(MENU_PLAYER *, int *);
+
+
 
 /* hook function for reading the mouse x position */
 static int default_mouse_x(void)
@@ -1823,8 +1827,6 @@
  */
 int update_menu(MENU_PLAYER *player)
 {
-   static int shutdown_single_menu(MENU_PLAYER *, int *);
-
    MENU_PLAYER *i;
    int c, c2;
    int old_sel, child_ret;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/