mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2025-12-28 07:06:01 +00:00
Fix wrong size_t printf format
vdagent/desktop_layout.cpp:121:763: warning: format '%u' expects
argument of type 'unsigned int', but argument 8 has type
'std::vector<DisplayMode*>::size_type {aka long long unsigned int}'
[-Wformat=]
This commit is contained in:
parent
492ee05a6b
commit
fc1de85b49
@ -118,7 +118,7 @@ void DesktopLayout::set_displays()
|
||||
break;
|
||||
}
|
||||
if (display_id >= _displays.size()) {
|
||||
vd_printf("display_id %lu out of range, #displays %u", display_id, _displays.size());
|
||||
vd_printf("display_id %lu out of range, #displays %zu" , display_id, _displays.size());
|
||||
break;
|
||||
}
|
||||
if (!init_dev_mode(dev_info.DeviceName, &dev_mode, _displays.at(display_id), true)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user