summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qlayoutitem.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-01-28 20:17:16 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-12 22:46:38 +0100
commit9253509f3eebdcfc9669dd15caf9c7ec01f15dc7 (patch)
tree03ca048560046ee3e11ed75935c5e095a67527f4 /src/widgets/kernel/qlayoutitem.h
parentd52b5d37e2849369b1e9ab2d32e9290e22db0ef4 (diff)
Mark public non-member non-static variables as Q_DECL_UNUSED
This avoids warnings in compilers that check for unused variables. They can't tell that the the variable came from a header. Change-Id: I1ea5e5bbc76d676fbb561bdc8ae6543e758de90e Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/widgets/kernel/qlayoutitem.h')
-rw-r--r--src/widgets/kernel/qlayoutitem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qlayoutitem.h b/src/widgets/kernel/qlayoutitem.h
index 3dfd5b0eb2..808cc9ff5d 100644
--- a/src/widgets/kernel/qlayoutitem.h
+++ b/src/widgets/kernel/qlayoutitem.h
@@ -50,7 +50,7 @@
QT_BEGIN_NAMESPACE
-static const int QLAYOUTSIZE_MAX = INT_MAX/256/16;
+static const Q_DECL_UNUSED int QLAYOUTSIZE_MAX = INT_MAX/256/16;
class QLayout;
class QLayoutItem;