[Spice-devel] [PATCH 14/24] mingw32 build: fix assignement as condition warning

Hans de Goede hdegoede at redhat.com
Wed Dec 8 00:40:18 PST 2010


Ack.

On 12/07/2010 10:28 PM, Alon Levy wrote:
> ---
>   client/windows/platform.cpp |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
> index 06d5aa0..3e556fa 100644
> --- a/client/windows/platform.cpp
> +++ b/client/windows/platform.cpp
> @@ -199,7 +199,7 @@ static LRESULT CALLBACK PlatformWinProc(HWND hWnd, UINT message, WPARAM wParam,
>               int type_count;
>               uint32_t* types;
>               Platform::set_clipboard_owner(Platform::owner_none);
> -            if (type_count = get_available_clipboard_types(&types)) {
> +            if ((type_count = get_available_clipboard_types(&types))) {
>                   clipboard_listener->on_clipboard_grab(types, type_count);
>                   delete[] types;
>               } else {


More information about the Spice-devel mailing list