From 23dddef64badfa9078bc8fad5cdf3d91b29fd684 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Fri, 2 Dec 2022 19:03:06 +0000 Subject: [PATCH] Mark unused function parameters as such --- src/fileio.c | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index d9a1d1d0..24047e7a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -118,10 +118,9 @@ char * fileio_fmtstr(FILEFMT format) } -static int b2ihex(const unsigned char *inbuf, int bufsize, - int recsize, int startaddr, - const char *outfile, FILE *outf, FILEFMT ffmt) -{ +static int b2ihex(const unsigned char *inbuf, int bufsize, int recsize, + int startaddr, const char *outfile_unused, FILE *outf, FILEFMT ffmt) { + const unsigned char *buf; unsigned int nextaddr; int n, nbytes, n_64k; @@ -397,10 +396,9 @@ static int ihex2b(const char *infile, FILE *inf, } } -static int b2srec(const unsigned char *inbuf, int bufsize, - int recsize, int startaddr, - const char *outfile, FILE *outf) -{ +static int b2srec(const unsigned char *inbuf, int bufsize, int recsize, + int startaddr, const char *outfile_unused, FILE *outf) { + const unsigned char *buf; unsigned int nextaddr; int n, nbytes, addr_width; @@ -767,10 +765,9 @@ static int elf_mem_limits(const AVRMEM *mem, const AVRPART *p, } -static int elf2b(const char *infile, FILE *inf, - const AVRMEM *mem, const AVRPART *p, - int bufsize, unsigned int fileoffset) -{ +static int elf2b(const char *infile, FILE *inf, const AVRMEM *mem, + const AVRPART *p, int bufsize_unused, unsigned int fileoffset_unused) { + Elf *e; int rv = 0, size = 0; unsigned int low, high, foff; @@ -1045,9 +1042,9 @@ static int fileio_rbin(struct fioparms *fio, } -static int fileio_imm(struct fioparms *fio, - const char *fname, FILE *f, const AVRMEM *mem, int size) -{ +static int fileio_imm(struct fioparms *fio, const char *fname, FILE *f_unused, + const AVRMEM *mem, int size) { + int rc = 0; char *e, *p, *filename; unsigned long b;