[Spice-devel] [Spice-commits] 9 commits - spice-protocol vdagent/desktop_layout.cpp vdagent/display_setting.cpp vdagent/file_xfer.cpp vdagent/vdagent.cpp

Christophe Fergeau cfergeau at redhat.com
Fri Jul 26 05:55:56 PDT 2013


On Wed, Jul 17, 2013 at 11:53:25AM -0700, Marc-André Lureau wrote:
> commit fc1de85b499759576fa52dfd20496bfb887c8295
> Author: Marc-Andr?? Lureau <marcandre.lureau at gmail.com>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130726/762a620b/attachment.pgp>


More information about the Spice-devel mailing list