Squash more compiler warnings

This commit is contained in:
Bill Somerville
2021-04-14 23:41:52 +01:00
parent 8de93a5330
commit 583b4aa21a
4 changed files with 5 additions and 9 deletions
-5
View File
@@ -27,11 +27,6 @@ if (WIN32)
set (map65_CXXSRCS ${map65_CXXSRCS} killbyname.cpp)
endif (WIN32)
set (map65_CSRCS
paInputDevice.c
pa_get_device_info.c
)
set (map65_UISRCS
about.ui
astro.ui
+3 -2
View File
@@ -22,8 +22,9 @@ void getfile(QString fname, bool xpol, int dbDgrd)
FILE* fp=fopen(name,"rb");
if(fp != NULL) {
(void)fread(&datcom_.fcenter,sizeof(datcom_.fcenter),1,fp);
(void)fread(id,2,npts,fp);
auto n = fread(&datcom_.fcenter,sizeof(datcom_.fcenter),1,fp);
n = fread(id,2,npts,fp);
Q_UNUSED (n);
int j=0;
if(dbDgrd<0) {
+1 -1
View File
@@ -273,7 +273,7 @@ void CPlotter::UTCstr()
ihr=imin/60;
imin=imin % 60;
}
sprintf(m_sutc,"%2.2d:%2.2d",ihr,imin);
m_sutc = QString {"%1:%2"}.arg (ihr, 2).arg (imin, 2);
}
void CPlotter::DrawOverlay() //DrawOverlay()
+1 -1
View File
@@ -115,7 +115,7 @@ private:
qint32 m_FreqUnits;
qint32 m_hdivs;
bool m_dataFromDisk;
char m_sutc[5];
QString m_sutc;
qint32 m_line;
qint32 m_hist1[256];
qint32 m_hist2[256];