less ugly way to silence gcc 4.6 (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-12-15 14:10:46 +00:00
parent f23a3ef001
commit a2cf6501ea
3 changed files with 4 additions and 4 deletions

View File

@ -397,7 +397,7 @@ static BOOL CALLBACK monitor_enum_callback(HMONITOR handle, HDC dc, LPRECT rect,
info.cbSize = sizeof(info);
result = GetMonitorInfo(handle, (LPMONITORINFO)&info);
assert(result);
result++; // to silence gcc 4.6
(void)result; // to silence gcc 4.6
// allocate a new monitor info
monitor = global_alloc_clear(sdl_monitor_info);

View File

@ -127,7 +127,7 @@ void winoutput_init(running_machine &machine)
// create our window class
result = create_window_class();
assert(result == 0);
result++; // to silence gcc 4.6
(void)result; // to silence gcc 4.6
// create a window
output_hwnd = CreateWindowEx(

View File

@ -164,7 +164,7 @@ void winvideo_monitor_refresh(win_monitor_info *monitor)
monitor->info.cbSize = sizeof(monitor->info);
result = GetMonitorInfo(monitor->handle, (LPMONITORINFO)&monitor->info);
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);
result = GetMonitorInfo(handle, (LPMONITORINFO)&info);
assert(result);
result++; // to silence gcc 4.6
(void)result; // to silence gcc 4.6
// allocate a new monitor info
monitor = global_alloc_clear(win_monitor_info);