Squashed some compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3978 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2014-04-03 19:44:34 +00:00
parent 581691befb
commit b17ff13e89
7 changed files with 5 additions and 10 deletions

View File

@ -24,6 +24,7 @@ Detector::Detector (unsigned frameRate, unsigned periodLengthInSeconds,
new short [framesPerSignal * downSampleFactor] : 0) new short [framesPerSignal * downSampleFactor] : 0)
, m_bufferPos (0) , m_bufferPos (0)
{ {
(void)m_frameRate; // quell compiler warning
clear (); clear ();
} }

View File

@ -38,7 +38,7 @@ void *INIT_RS(int symsize,int gfpoly,int fcr,int prim,
int i, j, sr,root,iprim; int i, j, sr,root,iprim;
/* Check parameter ranges */ /* Check parameter ranges */
if(symsize < 0 || symsize > 8*sizeof(DTYPE)) if(symsize < 0 || symsize > (int)(8*sizeof(DTYPE)))
return NULL; /* Need version with ints rather than chars */ return NULL; /* Need version with ints rather than chars */
if(fcr < 0 || fcr >= (1<<symsize)) if(fcr < 0 || fcr >= (1<<symsize))

View File

@ -18,9 +18,8 @@ subroutine MoonDop(nyear,month,nday,uth4,lon4,lat4,RAMoon4, &
real*8 RME(6) !Vector from Earth center to Moon real*8 RME(6) !Vector from Earth center to Moon
real*8 RAE(6) !Vector from Earth center to Obs real*8 RAE(6) !Vector from Earth center to Obs
real*8 RMA(6) !Vector from Obs to Moon real*8 RMA(6) !Vector from Obs to Moon
real*8 pvsun(6)
real*8 rme0(6) real*8 rme0(6)
logical km,bary logical km
data rad/57.2957795130823d0/,twopi/6.28310530717959d0/ data rad/57.2957795130823d0/,twopi/6.28310530717959d0/

View File

@ -3,7 +3,7 @@ subroutine tm2(day,xlat4,xlon4,xl4,b4)
implicit real*8 (a-h,o-z) implicit real*8 (a-h,o-z)
parameter (RADS=0.0174532925199433d0) parameter (RADS=0.0174532925199433d0)
real*4 day4,xlat4,xlon4,xl4,b4 real*4 xlat4,xlon4,xl4,b4
glat=xlat4*RADS glat=xlat4*RADS
glong=xlon4*RADS glong=xlon4*RADS

View File

@ -22,9 +22,6 @@ private:
QLabel *m_label; QLabel *m_label;
int m_signal;
int m_sigPeak;
protected: protected:
void paintEvent( QPaintEvent * ); void paintEvent( QPaintEvent * );
void resizeEvent(QResizeEvent *s); void resizeEvent(QResizeEvent *s);

View File

@ -47,8 +47,7 @@ bool SoundOutput::audioError () const
} }
SoundOutput::SoundOutput (QIODevice * source) SoundOutput::SoundOutput (QIODevice * source)
: m_source (source) : m_active (false)
, m_active (false)
, m_currentDevice (QAudioDeviceInfo::defaultOutputDevice ()) , m_currentDevice (QAudioDeviceInfo::defaultOutputDevice ())
{ {
Q_ASSERT (source); Q_ASSERT (source);

View File

@ -47,7 +47,6 @@ private Q_SLOTS:
private: private:
QScopedPointer<QAudioOutput> m_stream; QScopedPointer<QAudioOutput> m_stream;
QIODevice * m_source;
bool volatile m_active; bool volatile m_active;
QAudioDeviceInfo m_currentDevice; QAudioDeviceInfo m_currentDevice;
qreal m_volume; qreal m_volume;