Silence compiler warnings in jtagm.c
This commit is contained in:
parent
6d15d24a4d
commit
507031badf
|
@ -83,7 +83,7 @@ struct pdata
|
||||||
* to try connecting at startup, we keep these two entries on top to
|
* to try connecting at startup, we keep these two entries on top to
|
||||||
* speedup the program start.
|
* speedup the program start.
|
||||||
*/
|
*/
|
||||||
const static struct {
|
static const struct {
|
||||||
long baud;
|
long baud;
|
||||||
unsigned char val;
|
unsigned char val;
|
||||||
} baudtab[] = {
|
} baudtab[] = {
|
||||||
|
@ -139,11 +139,10 @@ u16_to_b2(unsigned char *b, unsigned short l)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void jtagmkI_prmsg(const PROGRAMMER *pgm, unsigned char *data, size_t len) {
|
static void jtagmkI_prmsg(const PROGRAMMER *pgm, unsigned char *data, size_t len) {
|
||||||
int i;
|
|
||||||
|
|
||||||
if (verbose >= 4) {
|
if (verbose >= 4) {
|
||||||
msg_trace("Raw message:\n");
|
msg_trace("Raw message:\n");
|
||||||
|
|
||||||
|
size_t i;
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
msg_trace("0x%02x ", data[i]);
|
msg_trace("0x%02x ", data[i]);
|
||||||
if (i % 16 == 15)
|
if (i % 16 == 15)
|
||||||
|
@ -472,9 +471,7 @@ static int jtagmkI_program_disable(const PROGRAMMER *pgm) {
|
||||||
|
|
||||||
static unsigned char jtagmkI_get_baud(long baud)
|
static unsigned char jtagmkI_get_baud(long baud)
|
||||||
{
|
{
|
||||||
int i;
|
for (size_t i = 0; i < sizeof baudtab / sizeof baudtab[0]; i++)
|
||||||
|
|
||||||
for (i = 0; i < sizeof baudtab / sizeof baudtab[0]; i++)
|
|
||||||
if (baud == baudtab[i].baud)
|
if (baud == baudtab[i].baud)
|
||||||
return baudtab[i].val;
|
return baudtab[i].val;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue