Re: [AD] Allegro 4.2.0 RC2 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, 2005-08-28 at 12:37 +0200, Michal Molhanec wrote:
> Another useless patch from the category "we don't like warnings" :-)
>
> plain text document attachment (datfont.diff)
> --- datfont.c.old Sun Jun 5 21:35:18 2005
> +++ datfont.c Sun Aug 28 12:23:21 2005
> @@ -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);
Thanks, makes sense. But gcc 4.0.2 doesn't warn about it even with
-pedantic.. so want to think about it before committing. Is this a bug
in gcc? Or is there some reason behind it, and we need no (void*)?
--
Elias Pschernig