Mercurial > hg > openttd
changeset 2902:c21c4a134732 draft
(svn r3457) -Fix: killed some warnings about strict-alias in an ugly way (but it works ;))
author | truelight <truelight@openttd.org> |
---|---|
date | Sat, 28 Jan 2006 11:08:07 +0000 |
parents | 3b844d987a5f |
children | 950e834ed9ee |
files | driver.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/driver.c +++ b/driver.c @@ -40,7 +40,7 @@ } DriverClass; -#define M(x, y, z) { x, y, (const HalCommonDriver*)z } +#define M(x, y, z) { x, y, (const HalCommonDriver *)(void *)z } static const DriverDesc _music_driver_descs[] = { #ifdef __BEOS__ M("bemidi", "BeOS MIDI Driver", &_bemidi_music_driver), @@ -99,7 +99,7 @@ #undef M -#define M(x, y, z) { x, y, (const HalCommonDriver**)z } +#define M(x, y, z) { x, y, (const HalCommonDriver **)(void *)z } static const DriverClass _driver_classes[] = { M(_video_driver_descs, "video", &_video_driver), M(_sound_driver_descs, "sound", &_sound_driver),