# HG changeset patch # User truelight # Date 1138446487 0 # Node ID c21c4a134732b3480c455bca29c0667b7fc35501 # Parent 3b844d987a5f5c0d731b8effabc8b7927722af92 (svn r3457) -Fix: killed some warnings about strict-alias in an ugly way (but it works ;)) diff --git a/driver.c b/driver.c --- 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),