[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/kexiutils
From:       Lorenzo Villani <lvillani () binaryhelix ! net>
Date:       2008-09-11 17:37:43
Message-ID: 1221154663.286194.14656.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 859981 by villani:

* removed some warnings from utils.cpp

 M  +12 -0     utils.cpp  


--- trunk/koffice/kexi/kexiutils/utils.cpp #859980:859981
@@ -408,6 +408,16 @@
 #else
 #pragma WARNING(TODO KexiUtils::drawPixmap)
 #endif
+    // The code below is excluded from compilation, this generates lots of warnings
+    // with GCC since no arguments get used
+    // Temporary fix follows.
+    Q_UNUSED(p);
+    Q_UNUSED(margins);
+    Q_UNUSED(rect);
+    Q_UNUSED(pixmap);
+    Q_UNUSED(alignment);
+    Q_UNUSED(scaledContents);
+    Q_UNUSED(keepAspectRatio);
 #if 0 //todo
     if (pixmap.isNull())
         return;
@@ -581,6 +591,8 @@
 const WidgetMargins KexiUtils::operator+ (
     const WidgetMargins& margins1, const WidgetMargins & margins2)
 {
+    // margins2 is not used
+    Q_UNUSED(margins2);
     return WidgetMargins(
                margins1.left + margins1.left,
                margins1.top + margins1.top,
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic