|
|
@@ -90,6 +90,9 @@ struct LoadedCommandImpl : cmLoadedCommandInfo
|
|
|
{
|
|
|
if (this->Destructor) {
|
|
|
SignalHandlerGuard guard(this->Name);
|
|
|
+#if defined(__NVCOMPILER)
|
|
|
+ static_cast<void>(guard); // convince compiler var is used
|
|
|
+#endif
|
|
|
this->Destructor(this);
|
|
|
}
|
|
|
if (this->Error != nullptr) {
|
|
|
@@ -103,12 +106,18 @@ struct LoadedCommandImpl : cmLoadedCommandInfo
|
|
|
int DoInitialPass(cmMakefile* mf, int argc, char* argv[])
|
|
|
{
|
|
|
SignalHandlerGuard guard(this->Name);
|
|
|
+#if defined(__NVCOMPILER)
|
|
|
+ static_cast<void>(guard); // convince compiler var is used
|
|
|
+#endif
|
|
|
return this->InitialPass(this, mf, argc, argv);
|
|
|
}
|
|
|
|
|
|
void DoFinalPass(cmMakefile* mf)
|
|
|
{
|
|
|
SignalHandlerGuard guard(this->Name);
|
|
|
+#if defined(__NVCOMPILER)
|
|
|
+ static_cast<void>(guard); // convince compiler var is used
|
|
|
+#endif
|
|
|
this->FinalPass(this, mf);
|
|
|
}
|
|
|
};
|