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

Alon Levy alevy at redhat.com
Tue Dec 7 13:28:13 PST 2010


---
 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 {
-- 
1.7.3.2



More information about the Spice-devel mailing list