On Wed, Jul 17, 2013 at 11:53:25AM -0700, Marc-André Lureau wrote:
> commit fc1de85b499759576fa52dfd20496bfb887c8295
> Author: Marc-Andr?? Lureau <[email protected]>
> Date:   Wed Jul 17 20:49:01 2013 +0200
> 
>     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=]
> 
> diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
> index ce259e1..7850e6d 100644
> --- a/vdagent/desktop_layout.cpp
> +++ b/vdagent/desktop_layout.cpp
> @@ -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());

If we still support msvc builds, I don't think %zu will work there.

Christophe

Attachment: pgpojrlKGtRLg.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to