summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2022-12-08 17:34:58 (GMT)
committermakise-homura <akemi_homura@kurisa.ch>2022-12-08 17:34:58 (GMT)
commitb1577f7a6a5352ee1f8d43406ccf6c612558205d (patch)
treef6b78f4cef96d76381e568a3c72e1cc3716e3836
parent986fce1fa7c1ec53871eeda5bcabdedab5427bd1 (diff)
downloadCMake-b1577f7a6a5352ee1f8d43406ccf6c612558205d.zip
CMake-b1577f7a6a5352ee1f8d43406ccf6c612558205d.tar.gz
CMake-b1577f7a6a5352ee1f8d43406ccf6c612558205d.tar.bz2
LCC: Update -Wunused-variable warning number as of LCC 1.26.16
-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