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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 17, 2013 at 11:53:25AM -0700, Marc-André Lureau wrote:
> commit fc1de85b499759576fa52dfd20496bfb887c8295
> Author: Marc-Andr?? Lureau <marcandre.lureau@xxxxxxxxx>
> 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: pgpfdVblgFEFZ.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]