mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-28 18:04:51 +00:00
Fix more warnings in gcc
This commit is contained in:
parent
1b25d14b4c
commit
84c13a5e2a
@ -718,7 +718,7 @@ int decode_type1012(rtcm_t *rtcm)
|
|||||||
|
|
||||||
|
|
||||||
/* decode type 1013: system parameters ---------------------------------------*/
|
/* decode type 1013: system parameters ---------------------------------------*/
|
||||||
int decode_type1013(rtcm_t *rtcm)
|
int decode_type1013(rtcm_t *rtcm __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -939,15 +939,15 @@ int decode_type1027(rtcm_t *rtcm __attribute__((unused)))
|
|||||||
int decode_type1029(rtcm_t *rtcm)
|
int decode_type1029(rtcm_t *rtcm)
|
||||||
{
|
{
|
||||||
char *msg;
|
char *msg;
|
||||||
int i = 24+12, j, staid, mjd, tod, nchar, cunit;
|
int i = 24+12, j, staid, nchar; // mjd, tod, nchar, cunit;
|
||||||
|
|
||||||
if (i+60 <= rtcm->len*8)
|
if (i+60 <= rtcm->len*8)
|
||||||
{
|
{
|
||||||
staid = getbitu(rtcm->buff, i, 12); i += 12;
|
staid = getbitu(rtcm->buff, i, 12); i += 12;
|
||||||
mjd = getbitu(rtcm->buff, i, 16); i += 16;
|
/* mjd = getbitu(rtcm->buff, i, 16); */ i += 16;
|
||||||
tod = getbitu(rtcm->buff, i, 17); i += 17;
|
/* tod = getbitu(rtcm->buff, i, 17); */ i += 17;
|
||||||
nchar = getbitu(rtcm->buff, i, 7); i += 7;
|
nchar = getbitu(rtcm->buff, i, 7); i += 7;
|
||||||
cunit = getbitu(rtcm->buff, i, 8); i += 8;
|
/* cunit = getbitu(rtcm->buff, i, 8); */ i += 8;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1189,7 +1189,7 @@ int decode_type1045(rtcm_t *rtcm)
|
|||||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, {0.0}, 0.0, 0.0};
|
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, {0.0}, 0.0, 0.0};
|
||||||
double toc, sqrtA;
|
double toc, sqrtA;
|
||||||
char *msg;
|
char *msg;
|
||||||
int i = 24+12, prn, sat, week, e5a_hs, e5a_dvs, rsv, sys = SYS_GAL;
|
int i = 24+12, prn, sat, week, e5a_hs, e5a_dvs, sys = SYS_GAL;
|
||||||
|
|
||||||
if (i+484 <= rtcm->len*8)
|
if (i+484 <= rtcm->len*8)
|
||||||
{
|
{
|
||||||
@ -1220,7 +1220,7 @@ int decode_type1045(rtcm_t *rtcm)
|
|||||||
eph.tgd[0] = getbits(rtcm->buff, i, 10)*TWO_N32; i += 10; /* E5a/E1 */
|
eph.tgd[0] = getbits(rtcm->buff, i, 10)*TWO_N32; i += 10; /* E5a/E1 */
|
||||||
e5a_hs = getbitu(rtcm->buff, i, 2); i += 2; /* OSHS */
|
e5a_hs = getbitu(rtcm->buff, i, 2); i += 2; /* OSHS */
|
||||||
e5a_dvs = getbitu(rtcm->buff, i, 1); i += 1; /* OSDVS */
|
e5a_dvs = getbitu(rtcm->buff, i, 1); i += 1; /* OSDVS */
|
||||||
rsv = getbitu(rtcm->buff, i, 7);
|
//rsv = getbitu(rtcm->buff, i, 7);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1266,7 +1266,7 @@ int decode_type1046(rtcm_t *rtcm)
|
|||||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, {0.0}, 0.0, 0.0};
|
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, {0.0}, 0.0, 0.0};
|
||||||
double toc, sqrtA;
|
double toc, sqrtA;
|
||||||
char *msg;
|
char *msg;
|
||||||
int i = 24+12, prn, sat, week, e5a_hs, e5a_dvs, rsv, sys = SYS_GAL;
|
int i = 24+12, prn, sat, week, e5a_hs, e5a_dvs, sys = SYS_GAL;
|
||||||
|
|
||||||
if (i+484 <= rtcm->len*8)
|
if (i+484 <= rtcm->len*8)
|
||||||
{
|
{
|
||||||
@ -1297,7 +1297,7 @@ int decode_type1046(rtcm_t *rtcm)
|
|||||||
eph.tgd[0] = getbits(rtcm->buff, i, 10)*TWO_N32; i += 10; /* E5a/E1 */
|
eph.tgd[0] = getbits(rtcm->buff, i, 10)*TWO_N32; i += 10; /* E5a/E1 */
|
||||||
e5a_hs = getbitu(rtcm->buff, i, 2); i += 2; /* OSHS */
|
e5a_hs = getbitu(rtcm->buff, i, 2); i += 2; /* OSHS */
|
||||||
e5a_dvs = getbitu(rtcm->buff, i, 1); i += 1; /* OSDVS */
|
e5a_dvs = getbitu(rtcm->buff, i, 1); i += 1; /* OSDVS */
|
||||||
rsv = getbitu(rtcm->buff, i, 7);
|
//rsv = getbitu(rtcm->buff, i, 7);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1955,8 +1955,8 @@ int decode_ssr7(rtcm_t *rtcm, int sys)
|
|||||||
{
|
{
|
||||||
const int *codes;
|
const int *codes;
|
||||||
double udint, bias, std, pbias[MAXCODE], stdpb[MAXCODE];
|
double udint, bias, std, pbias[MAXCODE], stdpb[MAXCODE];
|
||||||
int i, j, k, type, mode, sync, iod, nsat, prn, sat, nbias, ncode, np, mw, offp, sii, swl;
|
int i, j, k, type, mode, sync, iod, nsat, prn, sat, nbias, ncode, np, mw, offp;
|
||||||
int dispe, sdc, yaw_ang, yaw_rate;
|
int dispe, yaw_ang, yaw_rate;
|
||||||
|
|
||||||
type = getbitu(rtcm->buff, 24, 12);
|
type = getbitu(rtcm->buff, 24, 12);
|
||||||
|
|
||||||
@ -1985,9 +1985,9 @@ int decode_ssr7(rtcm_t *rtcm, int sys)
|
|||||||
for (k = 0; k < nbias && i+49 <= rtcm->len*8; k++)
|
for (k = 0; k < nbias && i+49 <= rtcm->len*8; k++)
|
||||||
{
|
{
|
||||||
mode = getbitu(rtcm->buff, i, 5); i += 5;
|
mode = getbitu(rtcm->buff, i, 5); i += 5;
|
||||||
sii = getbitu(rtcm->buff, i, 1); i += 1; /* integer-indicator */
|
/* sii = getbitu(rtcm->buff, i, 1); */ i += 1; /* integer-indicator */
|
||||||
swl = getbitu(rtcm->buff, i, 2); i += 2; /* WL integer-indicator */
|
/* swl = getbitu(rtcm->buff, i, 2); */ i += 2; /* WL integer-indicator */
|
||||||
sdc = getbitu(rtcm->buff, i, 4); i += 4; /* discontinuity counter */
|
/* sdc = getbitu(rtcm->buff, i, 4); */ i += 4; /* discontinuity counter */
|
||||||
bias = getbits(rtcm->buff, i, 20); i += 20; /* phase bias (m) */
|
bias = getbits(rtcm->buff, i, 20); i += 20; /* phase bias (m) */
|
||||||
std = getbitu(rtcm->buff, i, 17); i += 17; /* phase bias std-dev (m) */
|
std = getbitu(rtcm->buff, i, 17); i += 17; /* phase bias std-dev (m) */
|
||||||
if (mode <= ncode)
|
if (mode <= ncode)
|
||||||
@ -2196,7 +2196,7 @@ int decode_msm_head(rtcm_t *rtcm, int sys, int *sync, int *iod,
|
|||||||
msm_h_t h0 = {0, 0, 0, 0, 0, 0, 0, 0, {0}, {0}, {0}};
|
msm_h_t h0 = {0, 0, 0, 0, 0, 0, 0, 0, {0}, {0}, {0}};
|
||||||
double tow, tod;
|
double tow, tod;
|
||||||
char *msg;
|
char *msg;
|
||||||
int i = 24, j, dow, mask, staid, type, ncell = 0;
|
int i = 24, j, mask, staid, type, ncell = 0;
|
||||||
|
|
||||||
type = getbitu(rtcm->buff, i, 12); i += 12;
|
type = getbitu(rtcm->buff, i, 12); i += 12;
|
||||||
|
|
||||||
@ -2207,7 +2207,7 @@ int decode_msm_head(rtcm_t *rtcm, int sys, int *sync, int *iod,
|
|||||||
|
|
||||||
if (sys == SYS_GLO)
|
if (sys == SYS_GLO)
|
||||||
{
|
{
|
||||||
dow = getbitu(rtcm->buff, i, 3); i += 3;
|
/* dow = getbitu(rtcm->buff, i, 3); */ i += 3;
|
||||||
tod = getbitu(rtcm->buff, i, 27)*0.001; i += 27;
|
tod = getbitu(rtcm->buff, i, 27)*0.001; i += 27;
|
||||||
adjday_glot(rtcm, tod);
|
adjday_glot(rtcm, tod);
|
||||||
}
|
}
|
||||||
@ -2580,7 +2580,7 @@ int decode_msm7(rtcm_t *rtcm, int sys)
|
|||||||
|
|
||||||
|
|
||||||
/* decode type 1230: glonass L1 and L2 code-phase biases ---------------------*/
|
/* decode type 1230: glonass L1 and L2 code-phase biases ---------------------*/
|
||||||
int decode_type1230(rtcm_t *rtcm)
|
int decode_type1230(rtcm_t *rtcm __attribute__((unused)))
|
||||||
{
|
{
|
||||||
trace(2, "rtcm3 1230: not supported message\n");
|
trace(2, "rtcm3 1230: not supported message\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -91,7 +91,7 @@ const unsigned int CODE_L9A = 52; //!< obs code: SA SPS (IRN)
|
|||||||
const unsigned int CODE_L9B = 53; //!< obs code: SB RS(D) (IRN)
|
const unsigned int CODE_L9B = 53; //!< obs code: SB RS(D) (IRN)
|
||||||
const unsigned int CODE_L9C = 54; //!< obs code: SC RS(P) (IRN)
|
const unsigned int CODE_L9C = 54; //!< obs code: SC RS(P) (IRN)
|
||||||
const unsigned int CODE_L9X = 55; //!< obs code: SB+C (IRN)
|
const unsigned int CODE_L9X = 55; //!< obs code: SB+C (IRN)
|
||||||
const unsigned int MAXCODE = 55; //!< max number of obs code
|
const int MAXCODE = 55; //!< max number of obs code
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user