summaryrefslogtreecommitdiff
path: root/driver.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-01-28 11:08:07 +0000
committertruelight <truelight@openttd.org>2006-01-28 11:08:07 +0000
commit0d010c97e64b4c7df1f201527271b2cccb9e5dae (patch)
tree228a11f8ffa2cfe47f730214b577241607c0baf6 /driver.c
parent585b47b6c583978d74bff56c7b534da39e3fb3d5 (diff)
downloadopenttd-0d010c97e64b4c7df1f201527271b2cccb9e5dae.tar.xz
(svn r3457) -Fix: killed some warnings about strict-alias in an ugly way (but it works ;))
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 4faf41fa1..7b1447973 100644
--- a/driver.c
+++ b/driver.c
@@ -40,7 +40,7 @@ typedef struct DriverClass {
} 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 @@ static const DriverDesc _video_driver_descs[] = {
#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),