summaryrefslogtreecommitdiffstats
path: root/Source/cmCallVisualStudioMacro.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-11-20 16:10:11 (GMT)
committerBrad King <brad.king@kitware.com>2007-11-20 16:10:11 (GMT)
commiteee575283d75686deeea252ef82baa18c7dfe994 (patch)
tree6811c8d6cd6903659542ab8dee079c3aea252795 /Source/cmCallVisualStudioMacro.cxx
parentd5ff71a14e2f890670d8e090850ed06b99dbe7ff (diff)
downloadCMake-eee575283d75686deeea252ef82baa18c7dfe994.zip
CMake-eee575283d75686deeea252ef82baa18c7dfe994.tar.gz
CMake-eee575283d75686deeea252ef82baa18c7dfe994.tar.bz2
STYLE: Fixed line-too-long. COMP: Fixed warnings about lossy conversions.
Diffstat (limited to 'Source/cmCallVisualStudioMacro.cxx')
-rw-r--r--Source/cmCallVisualStudioMacro.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmCallVisualStudioMacro.cxx b/Source/cmCallVisualStudioMacro.cxx
index 635e264..8011284 100644
--- a/Source/cmCallVisualStudioMacro.cxx
+++ b/Source/cmCallVisualStudioMacro.cxx
@@ -347,7 +347,8 @@ HRESULT FindVisualStudioInstances(
//std::cout << "Found Visual Studio instance." << std::endl;
//std::cout << " ROT entry name: " << it->first << std::endl;
- //std::cout << " ROT entry object: " << (IUnknown*) it->second << std::endl;
+ //std::cout << " ROT entry object: "
+ // << (IUnknown*) it->second << std::endl;
//std::cout << " slnFile: " << slnFile << std::endl;
//std::cout << " slnName: " << slnName << std::endl;
}
@@ -381,7 +382,7 @@ int cmCallVisualStudioMacro::GetNumberOfRunningVisualStudioInstances(
if(SUCCEEDED(hr))
{
- count = instances.size();
+ count = static_cast<int>(instances.size());
}
// Force release all COM pointers before CoUninitialize:
@@ -389,6 +390,8 @@ int cmCallVisualStudioMacro::GetNumberOfRunningVisualStudioInstances(
CoUninitialize();
}
+#else
+ (void)slnFile;
#endif
return count;
@@ -449,6 +452,9 @@ int cmCallVisualStudioMacro::CallMacro(
CoUninitialize();
}
#else
+ (void)slnFile;
+ (void)macro;
+ (void)args;
cmSystemTools::Error("cmCallVisualStudioMacro::CallMacro is not "
"supported on this platform");
#endif