summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-12-09 12:53:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-12-09 12:54:00 (GMT)
commit8e46329f35751f1d3b84d41c9d0bf691949c59be (patch)
tree3a76f7101579315d62403cd1d049aa9acc86d37a
parent1652616f9566d2f2f358dca25ebab9c8be9287be (diff)
parentb1577f7a6a5352ee1f8d43406ccf6c612558205d (diff)
downloadCMake-8e46329f35751f1d3b84d41c9d0bf691949c59be.zip
CMake-8e46329f35751f1d3b84d41c9d0bf691949c59be.tar.gz
CMake-8e46329f35751f1d3b84d41c9d0bf691949c59be.tar.bz2
Merge topic 'lcc-upd-warning'
b1577f7a6a LCC: Update -Wunused-variable warning number as of LCC 1.26.16 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8006
-rw-r--r--Source/cmFindPackageCommand.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 60b0a7b..71c7e13 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -379,6 +379,8 @@ private:
# pragma diag_suppress 3288 // parameter was declared but never referenced
# define CM_LCC_DIAG_SUPPRESS_3301
# pragma diag_suppress 3301 // parameter was declared but never referenced
+# define CM_LCC_DIAG_SUPPRESS_3308
+# pragma diag_suppress 3308 // parameter was declared but never referenced
#endif
void ResetGenerator()
@@ -423,6 +425,11 @@ bool TryGeneratedPaths(CallbackFn&& filesCollector,
return false;
}
+#ifdef CM_LCC_DIAG_SUPPRESS_3308
+# undef CM_LCC_DIAG_SUPPRESS_3308
+# pragma diag_default 3308
+#endif
+
#ifdef CM_LCC_DIAG_SUPPRESS_3301
# undef CM_LCC_DIAG_SUPPRESS_3301
# pragma diag_default 3301