diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-15 15:31:06 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-15 15:31:33 (GMT) |
commit | 31bed31d6d058a17d74de05a1653256decdfc735 (patch) | |
tree | a86dc5062f3c7ea5fba2273b8db20c5490025522 /src/gui/kernel | |
parent | e68aa748a35725e3a6028ebc75a8447eff0912cb (diff) | |
download | Qt-31bed31d6d058a17d74de05a1653256decdfc735.zip Qt-31bed31d6d058a17d74de05a1653256decdfc735.tar.gz Qt-31bed31d6d058a17d74de05a1653256decdfc735.tar.bz2 |
fix warnings with mingw
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qwidget_win.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index 243e361..ed219cd 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -1009,6 +1009,8 @@ const QString qt_reg_winclass(QWidget *w) // register window class #ifndef QT_NO_DEBUG if (!atom) qErrnoWarning("QApplication::regClass: Registering window class failed."); +#else + Q_UNUSED(atom); #endif winclassNames()->insert(cname, 1); diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp index dcf541c..46fa3be 100644 --- a/src/gui/kernel/qwidget_win.cpp +++ b/src/gui/kernel/qwidget_win.cpp @@ -264,7 +264,7 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO HINSTANCE appinst = qWinAppInst(); HWND parentw, destroyw = 0; - WId id; + WId id = 0; QString windowClassName = qt_reg_winclass(q); |