Re: [AD] Allegro 4.2.0 beta 3 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
two simple fixes for warnings about ignoring const
--
Regards,
Michal
ICQ# 175762750
--- tools/grabber.c Sat May 14 19:16:41 2005 UTC
+++ tools/grabber.c Sun May 15 17:42:53 2005 UTC
@@ -3526,7 +3526,7 @@
/* (dialog proc) (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp) (dp2) (dp3) */
{ d_shadow_box_proc, 0, 0, 224, 113, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL },
{ d_ctext_proc, 0, 2, 220, 15, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL },
- { d_list_proc, 28, 24, 161, 50, 0, 0, 0, 0, 0, 0, list_getter, NULL, NULL },
+ { d_list_proc, 28, 24, 161, 50, 0, 0, 0, 0, 0, 0, (int(*)(int,DIALOG*,int))list_getter, NULL, NULL },
{ d_button_proc, 16, 80, 81, 17, 0, 0, 13, D_EXIT, 0, 0, "OK", NULL, NULL },
{ d_button_proc, 127, 80, 81, 17, 0, 0, 27, D_EXIT, 0, 0, "Cancel", NULL, NULL },
{ NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL }
--- tools/plugins/datfont.c Tue May 3 20:56:46 2005 UTC
+++ tools/plugins/datfont.c Sun May 15 17:47:40 2005 UTC
@@ -453,7 +453,7 @@
c = datedit_select(datafile_fontname_getter, "Select font:");
if (c>=0) {
names[0] = datafile_fontname_getter(c, NULL);
- f = load_font(filename, NULL, names);
+ f = load_font(filename, NULL, (void*)names);
}
unload_datafile(fonts_datafile);