diff --git a/getfile.cpp b/getfile.cpp index bb739f059..527f9c910 100644 --- a/getfile.cpp +++ b/getfile.cpp @@ -126,7 +126,7 @@ int ptt(int nport, int ntx, int* iptt, int* nopen) #ifdef WIN32 static HANDLE hFile; char s[10]; - int i3=1,i4=1,i5=1,i6=1,i9=1,i00=1; + int i3=1,i4=1,i5=1,i6=1,i9=1,i00=1; //Defs to silence compiler warning if(nport==0) { *iptt=ntx; @@ -159,6 +159,7 @@ int ptt(int nport, int ntx, int* iptt, int* nopen) *iptt=0; *nopen=0; } + if((i3+i4+i5+i6+i9+i00)==-999) return 1; //Silence compiler warning return 0; #endif } diff --git a/killbyname.cpp b/killbyname.cpp index 51e8c80d6..240ad5aca 100644 --- a/killbyname.cpp +++ b/killbyname.cpp @@ -35,7 +35,8 @@ int killbyname(const char *szToTerminate) HANDLE hProc,hSnapShot,hSnapShotm; OSVERSIONINFO osvi; HINSTANCE hInstLib; - int iLen,iLenP,indx; +// int iLen,iLenP,indx; + int iLenP,indx; HMODULE hMod; PROCESSENTRY32 procentry; MODULEENTRY32 modentry; @@ -116,7 +117,8 @@ int killbyname(const char *szToTerminate) // Now, get the process name if(hProc) { if(lpfEnumProcessModules(hProc,&hMod,sizeof(hMod),&iCbneeded) ) { - iLen=lpfGetModuleBaseName(hProc,hMod,szName,MAX_PATH); +// iLen=lpfGetModuleBaseName(hProc,hMod,szName,MAX_PATH); + lpfGetModuleBaseName(hProc,hMod,szName,MAX_PATH); } } CloseHandle(hProc); diff --git a/mainwindow.cpp b/mainwindow.cpp index addd500b4..9282be7b9 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/rigclass.cpp b/rigclass.cpp index 286d566f5..7bec45de3 100644 --- a/rigclass.cpp +++ b/rigclass.cpp @@ -102,6 +102,7 @@ int Rig::close(void) { if(m_hrd) { #ifdef WIN32 HRDInterfaceDisconnect(); + return 0; #endif } else { return rig_close(theRig);