From a10ff8743636277ceb2b3b7d58e0a594aa45aa76 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer
Date: Sat, 25 Nov 2017 14:15:56 +0300 Subject: [PATCH 1/3] fix mixed declarations and code in win32_ioctl.c: lib/driver/MSWindows/win32_ioctl.c: In function 'audio_play_msf_win32ioctl': lib/driver/MSWindows/win32_ioctl.c:193:3: warning: ISO C90 forbids mixed declarations and code --- lib/driver/MSWindows/win32_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/driver/MSWindows/win32_ioctl.c b/lib/driver/MSWindows/win32_ioctl.c index 29de8e1..ea65bae 100644 --- a/lib/driver/MSWindows/win32_ioctl.c +++ b/lib/driver/MSWindows/win32_ioctl.c @@ -181,6 +181,7 @@ audio_play_msf_win32ioctl (void *p_user_data, msf_t *p_start_msf, const _img_private_t *p_env = p_user_data; CDROM_PLAY_AUDIO_MSF play; DWORD dw_bytes_returned; + bool b_success; play.StartingM = cdio_from_bcd8(p_start_msf->m); play.StartingS = cdio_from_bcd8(p_start_msf->s); @@ -190,7 +191,7 @@ audio_play_msf_win32ioctl (void *p_user_data, msf_t *p_start_msf, play.EndingS = cdio_from_bcd8(p_end_msf->s); play.EndingF = cdio_from_bcd8(p_end_msf->f); - bool b_success = + b_success = DeviceIoControl(p_env->h_device_handle, IOCTL_CDROM_PLAY_AUDIO_MSF, &play, sizeof(play), NULL, 0, &dw_bytes_returned, NULL); -- 1.8.5.5