mirror of
https://github.com/holub/mame
synced 2025-06-01 02:21:48 +03:00
less ugly way to silence gcc 4.6 (no whatsnew)
This commit is contained in:
parent
f23a3ef001
commit
a2cf6501ea
@ -397,7 +397,7 @@ static BOOL CALLBACK monitor_enum_callback(HMONITOR handle, HDC dc, LPRECT rect,
|
|||||||
info.cbSize = sizeof(info);
|
info.cbSize = sizeof(info);
|
||||||
result = GetMonitorInfo(handle, (LPMONITORINFO)&info);
|
result = GetMonitorInfo(handle, (LPMONITORINFO)&info);
|
||||||
assert(result);
|
assert(result);
|
||||||
result++; // to silence gcc 4.6
|
(void)result; // to silence gcc 4.6
|
||||||
|
|
||||||
// allocate a new monitor info
|
// allocate a new monitor info
|
||||||
monitor = global_alloc_clear(sdl_monitor_info);
|
monitor = global_alloc_clear(sdl_monitor_info);
|
||||||
|
@ -127,7 +127,7 @@ void winoutput_init(running_machine &machine)
|
|||||||
// create our window class
|
// create our window class
|
||||||
result = create_window_class();
|
result = create_window_class();
|
||||||
assert(result == 0);
|
assert(result == 0);
|
||||||
result++; // to silence gcc 4.6
|
(void)result; // to silence gcc 4.6
|
||||||
|
|
||||||
// create a window
|
// create a window
|
||||||
output_hwnd = CreateWindowEx(
|
output_hwnd = CreateWindowEx(
|
||||||
|
@ -164,7 +164,7 @@ void winvideo_monitor_refresh(win_monitor_info *monitor)
|
|||||||
monitor->info.cbSize = sizeof(monitor->info);
|
monitor->info.cbSize = sizeof(monitor->info);
|
||||||
result = GetMonitorInfo(monitor->handle, (LPMONITORINFO)&monitor->info);
|
result = GetMonitorInfo(monitor->handle, (LPMONITORINFO)&monitor->info);
|
||||||
assert(result);
|
assert(result);
|
||||||
result++; // to silence gcc 4.6
|
(void)result; // to silence gcc 4.6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ static BOOL CALLBACK monitor_enum_callback(HMONITOR handle, HDC dc, LPRECT rect,
|
|||||||
info.cbSize = sizeof(info);
|
info.cbSize = sizeof(info);
|
||||||
result = GetMonitorInfo(handle, (LPMONITORINFO)&info);
|
result = GetMonitorInfo(handle, (LPMONITORINFO)&info);
|
||||||
assert(result);
|
assert(result);
|
||||||
result++; // to silence gcc 4.6
|
(void)result; // to silence gcc 4.6
|
||||||
|
|
||||||
// allocate a new monitor info
|
// allocate a new monitor info
|
||||||
monitor = global_alloc_clear(win_monitor_info);
|
monitor = global_alloc_clear(win_monitor_info);
|
||||||
|
Loading…
Reference in New Issue
Block a user