summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-08-25 16:43:02 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-01 17:08:15 (GMT)
commit786e2695cb68402d44357002b438c95229c4fb19 (patch)
tree7b008945264d33ab95f5e83f5b1a3fd66d2aea98 /Source/QtDialog/QCMake.cxx
parent636e6c4ef7e79113802714dbc7ade77d4f04e809 (diff)
downloadCMake-786e2695cb68402d44357002b438c95229c4fb19.zip
CMake-786e2695cb68402d44357002b438c95229c4fb19.tar.gz
CMake-786e2695cb68402d44357002b438c95229c4fb19.tar.bz2
Add warn-unused to the Qt interface
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r--Source/QtDialog/QCMake.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index 8d24c1c2..1f9fa3d 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -29,6 +29,8 @@ QCMake::QCMake(QObject* p)
{
this->SuppressDevWarnings = false;
this->WarnUninitializedMode = false;
+ this->WarnUnusedMode = false;
+ this->WarnUnusedAllMode = false;
qRegisterMetaType<QCMakeProperty>();
qRegisterMetaType<QCMakePropertyList>();
@@ -167,6 +169,8 @@ void QCMake::configure()
this->CMakeInstance->SetSuppressDevWarnings(this->SuppressDevWarnings);
std::cerr << "set warn uninitialized " << this->WarnUninitializedMode << "\n";
this->CMakeInstance->SetWarnUninitialized(this->WarnUninitializedMode);
+ this->CMakeInstance->SetWarnUnused(this->WarnUnusedMode);
+ this->CMakeInstance->SetDefaultToUsed(!this->WarnUnusedAllMode);
this->CMakeInstance->PreLoadCMakeFiles();
cmSystemTools::ResetErrorOccuredFlag();
@@ -425,3 +429,13 @@ void QCMake::setWarnUninitializedMode(bool value)
{
this->WarnUninitializedMode = value;
}
+
+void QCMake::setWarnUnusedMode(bool value)
+{
+ this->WarnUnusedMode = value;
+}
+
+void QCMake::setWarnUnusedAllMode(bool value)
+{
+ this->WarnUnusedAllMode = value;
+}