summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoMocUic.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-26 15:23:12 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-28 14:09:52 (GMT)
commit5ad88623180d0a031512c813936f6a6bae49740c (patch)
tree100139eaf8e4810b81f6b380c2879ae28f2b0dde /Source/cmQtAutoMocUic.cxx
parent1898f9dd827fc6d74b4689c1ea6e59e9344ae415 (diff)
downloadCMake-5ad88623180d0a031512c813936f6a6bae49740c.zip
CMake-5ad88623180d0a031512c813936f6a6bae49740c.tar.gz
CMake-5ad88623180d0a031512c813936f6a6bae49740c.tar.bz2
Source: Convince NVHPC that RAII variables are used
Diffstat (limited to 'Source/cmQtAutoMocUic.cxx')
-rw-r--r--Source/cmQtAutoMocUic.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx
index e2b1ae1..f5c195f 100644
--- a/Source/cmQtAutoMocUic.cxx
+++ b/Source/cmQtAutoMocUic.cxx
@@ -2723,6 +2723,9 @@ void cmQtAutoMocUicT::CreateParseJobs(SourceFileMapT const& sourceMap)
std::string cmQtAutoMocUicT::CollapseFullPathTS(std::string const& path) const
{
std::lock_guard<std::mutex> guard(this->CMakeLibMutex_);
+#if defined(__NVCOMPILER)
+ static_cast<void>(guard); // convince compiler var is used
+#endif
return cmSystemTools::CollapseFullPath(path,
this->ProjectDirs().CurrentSource);
}
@@ -2962,6 +2965,9 @@ std::vector<std::string> cmQtAutoMocUicT::dependenciesFromDepFile(
const char* filePath)
{
std::lock_guard<std::mutex> guard(this->CMakeLibMutex_);
+#if defined(__NVCOMPILER)
+ static_cast<void>(guard); // convince compiler var is used
+#endif
auto const content = cmReadGccDepfile(filePath);
if (!content || content->empty()) {
return {};