win32: Fix some warnings

This commit is contained in:
Alexander Larsson 2011-11-02 16:49:55 +01:00
parent 11e9c6f95f
commit 52be8cb9e9
5 changed files with 7 additions and 5 deletions

View File

@ -25,6 +25,7 @@
#include "gdkwin32display.h"
#include "gdkwin32screen.h"
#include "gdkwin32window.h"
#include "gdkwin32.h"
#define HAVE_MONITOR_INFO
@ -383,7 +384,9 @@ inner_clipboard_window_procedure (HWND hwnd,
{
int success;
HWND hwndOwner;
#ifdef G_ENABLE_DEBUG
UINT nFormat = 0;
#endif
GdkEvent *event;
GdkWindow *owner;

View File

@ -2613,8 +2613,6 @@ gdk_event_translate (MSG *msg,
case WM_MOUSEACTIVATE:
{
GdkWindow *tmp;
if (gdk_window_get_window_type (window) == GDK_WINDOW_TEMP
|| !window->accept_focus)
{

View File

@ -404,7 +404,7 @@ gboolean _gdk_win32_display_set_selection_owner (GdkDisplay *display,
guint32 time,
gboolean send_event);
void _gdk_win32_display_send_selection_notify (GdkDisplay *display,
HWND requestor,
GdkWindow *requestor,
GdkAtom selection,
GdkAtom target,
GdkAtom property,

View File

@ -874,7 +874,7 @@ _gdk_selection_property_delete (GdkWindow *window)
void
_gdk_win32_display_send_selection_notify (GdkDisplay *display,
HWND requestor,
GdkWindow *requestor,
GdkAtom selection,
GdkAtom target,
GdkAtom property,

View File

@ -870,7 +870,9 @@ adjust_for_gravity_hints (GdkWindow *window,
if (impl->hint_flags & GDK_HINT_WIN_GRAVITY)
{
#ifdef G_ENABLE_DEBUG
gint orig_x = *x, orig_y = *y;
#endif
switch (impl->hints.win_gravity)
{
@ -933,7 +935,6 @@ show_window_internal (GdkWindow *window,
gboolean deiconify)
{
GdkWindowImplWin32 *window_impl;
HWND old_active_window;
gboolean focus_on_map = FALSE;
DWORD exstyle;