[companion] Fix a few reasonable warnings brought up by MSVC /W3. (#4206)

This commit is contained in:
Max Paperno
2017-01-07 08:33:56 +01:00
committed by Bertrand Songis
parent 51f186597c
commit 52b68c9ea2
5 changed files with 9 additions and 11 deletions
+2 -3
View File
@@ -93,13 +93,12 @@ void FlashProcess::onStarted()
progress->addSeparator();
}
# if !__GNUC__
#if !__GNUC__
bool killProcessByName(const char *szProcessToKill)
{
HANDLE hProcessSnap;
HANDLE hProcess;
PROCESSENTRY32 pe32;
DWORD dwPriorityClass;
hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); // Takes a snapshot of all the processes
@@ -129,7 +128,7 @@ bool killProcessByName(const char *szProcessToKill)
void FlashProcess::onKillTimerElapsed()
{
# if !__GNUC__
#if !__GNUC__
// trick to accelerate SAM-BA startup
killProcessByName("tasklist.exe");
#endif