Silence all compiler warnings from QtCreator.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3306 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-05-23 15:05:16 +00:00
parent 207116f574
commit e1c052d058
4 changed files with 8 additions and 4 deletions

View File

@ -126,7 +126,7 @@ int ptt(int nport, int ntx, int* iptt, int* nopen)
#ifdef WIN32 #ifdef WIN32
static HANDLE hFile; static HANDLE hFile;
char s[10]; 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) { if(nport==0) {
*iptt=ntx; *iptt=ntx;
@ -159,6 +159,7 @@ int ptt(int nport, int ntx, int* iptt, int* nopen)
*iptt=0; *iptt=0;
*nopen=0; *nopen=0;
} }
if((i3+i4+i5+i6+i9+i00)==-999) return 1; //Silence compiler warning
return 0; return 0;
#endif #endif
} }

View File

@ -35,7 +35,8 @@ int killbyname(const char *szToTerminate)
HANDLE hProc,hSnapShot,hSnapShotm; HANDLE hProc,hSnapShot,hSnapShotm;
OSVERSIONINFO osvi; OSVERSIONINFO osvi;
HINSTANCE hInstLib; HINSTANCE hInstLib;
int iLen,iLenP,indx; // int iLen,iLenP,indx;
int iLenP,indx;
HMODULE hMod; HMODULE hMod;
PROCESSENTRY32 procentry; PROCESSENTRY32 procentry;
MODULEENTRY32 modentry; MODULEENTRY32 modentry;
@ -116,7 +117,8 @@ int killbyname(const char *szToTerminate)
// Now, get the process name // Now, get the process name
if(hProc) { if(hProc) {
if(lpfEnumProcessModules(hProc,&hMod,sizeof(hMod),&iCbneeded) ) { 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); CloseHandle(hProc);

View File

@ -1,4 +1,4 @@
//------------------------------------------------------------- MainWindow //-------------------------------------------------------------- MainWindow
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "devsetup.h" #include "devsetup.h"

View File

@ -102,6 +102,7 @@ int Rig::close(void) {
if(m_hrd) { if(m_hrd) {
#ifdef WIN32 #ifdef WIN32
HRDInterfaceDisconnect(); HRDInterfaceDisconnect();
return 0;
#endif #endif
} else { } else {
return rig_close(theRig); return rig_close(theRig);