Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Compiler Warnings When Compiling GTK Client For OpenVMS...
Home

[Freeciv-Dev] Compiler Warnings When Compiling GTK Client For OpenVMS...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Compiler Warnings When Compiling GTK Client For OpenVMS...
From: Robert Alan Byer <byer@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Oct 2002 13:24:16 -0500

-----BEGIN PGP SIGNED MESSAGE-----


In my ever on going quest to get OpenVMS support updated in FreeCiv, I 
encounted the following compiler warnings while compiling 
../freeciv-1.14/client/gtk-client

All are pointer mismatches and everything seems to work fine, but thought I 
should bring it up in case anyone wanted to clean up the code a little.

===========================================================================

$ @VMS_BUILD.COM GTKCLIENTLIB NODEBUG PRE_DECC_V6_2

No Debugger Information Will Be Produced During Compile.
Compiling With Compiler Optimization.
Compiling With Pre DEC C v6.2 Support.
Checking Files.
Checking Directories.
Compiling On A AXP Machine.
Checking Library Logicals.

Compling The SYS$DISK:[.LIB]GTKCLIENTLIB-AXP.OLB Library.
Using Compile Command: CC/NOLIST/PREFIX=ALL/OPTIMIZE=(LEVEL=5,TUNE=HOST)/
ARCH=HO
ST/NODEBUG/REENTRANCY=MULTITHREAD/FLOAT=IEEE_FLOAT/IEEE_MODE=DENORM_RESULTS
/NEST=PRIMARY/NAME=(AS_IS,SHORTENED)/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT.
GUI-GTK],SYS$DISK:[-.CLIENT],SYS$DISK:[-.CLIENT.INCLUDE],SYS$DISK:[-.CLIENT.AGENTS
],SYS$DISK:[-.COMMON],SYS$DISK:[-.-.GTK128.GLIB],SYS$DISK:[-.-.IMLIB-1_9_8_1.
GDK_IMLIB],.INCLUDE])/DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_AXP_=TRUE",
"PRE_DECC_V6_2=TRUE")

        SYS$DISK:[-.CLIENT.GUI-GTK]CHATLINE.C
        SYS$DISK:[-.CLIENT.GUI-GTK]CITYDLG.C

    icon_bitmap = gdk_bitmap_create_from_data(root_window, cityicon_bits,
...........................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
cityicon_bits" is "unsigned char", which is not compatible with "const char".
at line number 1447 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]
CITYDLG.C;1
%LIBRAR-W-COMCOD, compilation warnings in module CITYDLG file DISK$WORK:[TEST.FR
EECIV-1_14.CLIENT.GUI-GTK]CITYDLG-AXP.OBJ;1
        SYS$DISK:[-.CLIENT.GUI-GTK]CITYREP.C

  TestCityFunc test_func = gtk_object_get_data(parent, "freeciv_test_func");
...........................^
%CC-W-PTRMISMATCH, In the initializer for test_func, the referenced type of the 
pointer value "gtk_object_get_data(...)" is "void", which is not compatible with
 "function (pointer to struct city, int) returning int".
at line number 254 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]CITYREP.C
;1

  gtk_object_set_data(GTK_OBJECT(submenu), "freeciv_test_func", test_func);
................................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
test_func" is "function (pointer to struct city, int) returning int", which 
is not compatible with "void".
at line number 348 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]CITYREP.C
;1
%LIBRAR-W-COMCOD, compilation warnings in module CITYREP file DISK$WORK:[
TEST.FREECIV-1_14.CLIENT.GUI-GTK]CITYREP-AXP.OBJ;1
        SYS$DISK:[-.CLIENT.GUI-GTK]CMA_FE.C
        SYS$DISK:[-.CLIENT.GUI-GTK]COLORS.C
        SYS$DISK:[-.CLIENT.GUI-GTK]CONNECTDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]DIALOGS.C

      gtk_object_get_data(GTK_OBJECT(dialog_shell), "close_callback");
......^
%CC-W-PTRMISMATCH, In the initializer for close_callback, the referenced type of
 the pointer value "gtk_object_get_data(...)" is "void", which is not 
compatible with "function (pointer to void) returning void".
at line number 1425 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]DIALOGS.
C;1

      gtk_object_get_data(GTK_OBJECT(dialog_shell), "close_callback");
......^
%CC-W-PTRMISMATCH, In the initializer for close_callback, the referenced type of
 the pointer value "gtk_object_get_data(...)" is "void", which is not 
compatible with "function (pointer to void) returning void".
at line number 1454 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]DIALOGS.
C;1

    buttons[i].callback = va_arg(args, void *);
....^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
(args=(__va_list)((char ...)args+(((__IS_X_FLOAT_BUILTIN(void ...)?sizeof(long d
ouble ...):sizeof(void ...))+7)&~7)),__IS_X_FLOAT_BUILTIN(void ...)?(**(
void ...)((char ...)arg
s-(((__IS_X_FLOAT_BUILTIN(void ...)?sizeof(long double ...):sizeof(void ..." is 
"void", which is not compatible with "function (pointer to void) returning 
void".
at line number 1604 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]DIALOGS.
C;1
%LIBRAR-W-COMCOD, compilation warnings in module DIALOGS file DISK$WORK:[TEST.FR
EECIV-1_14.CLIENT.GUI-GTK]DIALOGS-AXP.OBJ;1
        SYS$DISK:[-.CLIENT.GUI-GTK]DIPLODLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]FINDDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]GAMEDLGS.C
        SYS$DISK:[-.CLIENT.GUI-GTK]GOTODLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]GRAPHICS.C

  pixmap = gdk_bitmap_create_from_data(root_window, goto_cursor_bits,
....................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
goto_cursor_bits" is "unsigned char", which is not compatible with "const char".
at line number 200 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GRAPHICS.
C;1

  mask   = gdk_bitmap_create_from_data(root_window, goto_cursor_mask_bits,
....................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
goto_cursor_mask_bits" is "unsigned char", which is not compatible with "const c
har".
at line number 203 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GRAPHICS.
C;1

  pixmap = gdk_bitmap_create_from_data(root_window, drop_cursor_bits,
....................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
drop_cursor_bits" is "unsigned char", which is not compatible with "const 
char".
at line number 213 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GRAPHICS.
C;1

  mask   = gdk_bitmap_create_from_data(root_window, drop_cursor_mask_bits,
....................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
drop_cursor_mask_bits" is "unsigned char", which is not compatible with "const c
har".
at line number 216 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GRAPHICS.
C;1

  pixmap = gdk_bitmap_create_from_data(root_window, nuke_cursor_bits,
....................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
nuke_cursor_bits" is "unsigned char", which is not compatible with "const 
char".
at line number 226 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GRAPHICS.
C;1

  mask   = gdk_bitmap_create_from_data(root_window, nuke_cursor_mask_bits,
....................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
nuke_cursor_mask_bits" is "unsigned char", which is not compatible with "const c
har".
at line number 229 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GRAPHICS.
C;1
%LIBRAR-W-COMCOD, compilation warnings in module GRAPHICS file DISK$WORK:[TEST.F
REECIV-1_14.CLIENT.GUI-GTK]GRAPHICS-AXP.OBJ;1
        SYS$DISK:[-.CLIENT.GUI-GTK]GTKPIXCOMM.C
        SYS$DISK:[-.CLIENT.GUI-GTK]GUI_MAIN.C

  icon_bitmap = gdk_bitmap_create_from_data(root_window, freeciv_bits,
.........................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
freeciv_bits" is "unsigned char", which is not compatible with "const char".
at line number 785 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GUI_MAIN.
C;1

    gray50 = gdk_bitmap_create_from_data(root_window, d1, 4, 4);
......................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
d1" is "unsigned char", which is not compatible with "const char".
at line number 838 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GUI_MAIN.
C;1

    gray25 = gdk_bitmap_create_from_data(root_window, d2, 4, 4);
......................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
d2" is "unsigned char", which is not compatible with "const char".
at line number 839 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GUI_MAIN.
C;1

    black50 = gdk_bitmap_create_from_data(root_window, d3, 4, 4);
.......................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
d3" is "unsigned char", which is not compatible with "const char".
at line number 840 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]GUI_MAIN.
C;1
%LIBRAR-W-COMCOD, compilation warnings in module GUI_MAIN file DISK$WORK:[TEST.F
REECIV-1_14.CLIENT.GUI-GTK]GUI_MAIN-AXP.OBJ;1
        SYS$DISK:[-.CLIENT.GUI-GTK]GUI_STUFF.C
        SYS$DISK:[-.CLIENT.GUI-GTK]HAPPINESS.C
        SYS$DISK:[-.CLIENT.GUI-GTK]HELPDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]INPUTDLG.C

  void (*cancel_callback) (gpointer) = gtk_object_get_data(GTK_OBJECT(shell
),
.......................................^
%CC-W-PTRMISMATCH, In the initializer for cancel_callback, the referenced type o
f the pointer value "gtk_object_get_data(...)" is "void", which is not compatibl
e with "function (pointer to void) returning void".
at line number 35 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]INPUTDLG.C
;1

      gtk_object_get_data(GTK_OBJECT(shell),
......^
%CC-W-PTRMISMATCH, In the initializer for ok_callback, the referenced type of th
e pointer value "gtk_object_get_data(...)" is "void", which is not compatible wi
th "function (pointer to const char, pointer to void) returning void".
at line number 56 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]INPUTDLG.C
;1

  gtk_object_set_data(GTK_OBJECT(shell), "ok_callback", ok_callback);
........................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
ok_callback" is "function (pointer to const char, pointer to void) returning voi
d", which is not compatible with "void".
at line number 144 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]INPUTDLG.
C;1

  gtk_object_set_data(GTK_OBJECT(shell), "cancel_callback", cancel_callback
);
............................................................^
%CC-W-PTRMISMATCH, In this statement, the referenced type of the pointer value "
cancel_callback" is "function (pointer to void) returning void", which is not co
mpatible with "void".
at line number 146 in file DISK$WORK:[TEST.FREECIV-1_14.CLIENT.GUI-GTK]INPUTDLG.
C;1
%LIBRAR-W-COMCOD, compilation warnings in module INPUTDLG file DISK$WORK:[TEST.F
REECIV-1_14.CLIENT.GUI-GTK]INPUTDLG-AXP.OBJ;1
        SYS$DISK:[-.CLIENT.GUI-GTK]INTELDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]MAPCTRL.C
        SYS$DISK:[-.CLIENT.GUI-GTK]MAPVIEW.C
        SYS$DISK:[-.CLIENT.GUI-GTK]MENU.C
        SYS$DISK:[-.CLIENT.GUI-GTK]MESSAGEDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]MESSAGEWIN.C
        SYS$DISK:[-.CLIENT.GUI-GTK]PLRDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]REPODLGS.C
        SYS$DISK:[-.CLIENT.GUI-GTK]RESOURCES.C
        SYS$DISK:[-.CLIENT.GUI-GTK]SPACESHIPDLG.C
        SYS$DISK:[-.CLIENT.GUI-GTK]WLDLG.C
$ 

===========================================================================


 +------------------+--------------------------+---------------+
 | Robert Alan Byer | byer@xxxxxxxxxxxxxxxxxxx | ICQ #65926579 |
 +------------------+--------------------------+---------------+
 | Send an E-mail request to obtain a copy of my PGP key.      |
 +-------------------------------------------------------------+
 | "It is by caffeine alone I set my mind in motion.  It is by |
 |  cans of cola the thoughts aquire speed, the hands acquire  |
 |  shakes, the shakes become a warning.  It is by caffeine    |
 |  alone I set my mind in motion."                            |
 +-------------------------------------------------------------+


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBPaxdTKVSqzlBVJbBAQE0qggAsCl1bA6PfxoR7CP2gz3JUu+TUEexeK1I
sgnZz39GHX3VLWousQvik5twpeydUVdwFpfQmPBK/fS/smnmRKiprUcqin4nOSlG
todVqvR+RqCNLSVNBGRbeOJfUW9xoNw7RADAD1cyIfuc6kgIi3yn/OVugIMRvFaC
axwSu6qKpLVX1i+mZpFPEriOpwQ3ECpJEGRndpPIg11ZCEYCfkT/qrE9J3WtYWTt
Mglmj0CAhCz1XivPDmSqx/oO0rh5p4lKFh30cvf5l61vHwSiYAcQCrsibT2vW+9O
Uw2mwBC9TYU/7f6/fH1pTZWc+rnVjKp/xBvq82mC8sN9BltSDhqcDQ==
=grEE
-----END PGP SIGNATURE-----


[Prev in Thread] Current Thread [Next in Thread]