From: John Crispin Date: Fri, 11 Dec 2015 15:09:30 +0000 (+0000) Subject: firmware-utils: fix various compiler warnings X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=edef4f88fbea4584bdbef78a5078514dc2f8193f;p=project%2Ffirmware-utils.git firmware-utils: fix various compiler warnings mostly implicit defines due to missing includes plus one const that shouldn't be one. Signed-off-by: Felix Kaechele SVN-Revision: 47865 --- diff --git a/src/dgfirmware.c b/src/dgfirmware.c index 5ff3b69..e3257f1 100644 --- a/src/dgfirmware.c +++ b/src/dgfirmware.c @@ -1,5 +1,6 @@ #include #include +#include #define IMG_SIZE 0x3e0000 diff --git a/src/lzma2eva.c b/src/lzma2eva.c index 0bc13fa..1d7e364 100644 --- a/src/lzma2eva.c +++ b/src/lzma2eva.c @@ -48,7 +48,7 @@ main(int argc, char *argv[]) const char *infile, *outfile; FILE *in, *out; - static const uint8_t buf[4096]; + static uint8_t buf[4096]; size_t elems; uint8_t properties; diff --git a/src/mkhilinkfw.c b/src/mkhilinkfw.c index 99322d4..55908e5 100644 --- a/src/mkhilinkfw.c +++ b/src/mkhilinkfw.c @@ -22,6 +22,7 @@ * gcc -lcrypto hlkcrypt.c -o hlkcrypt */ +#include #include #include #include diff --git a/src/spw303v.c b/src/spw303v.c index ae34a1e..654d68d 100644 --- a/src/spw303v.c +++ b/src/spw303v.c @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include #include diff --git a/src/srec2bin.c b/src/srec2bin.c index 1cffbae..5cc71bd 100644 --- a/src/srec2bin.c +++ b/src/srec2bin.c @@ -513,7 +513,7 @@ int srec2bin(int argc,char *argv[],int verbose) return(1); } -main(int argc, char *argv[]) +int main(int argc, char *argv[]) { debug = TRUE; debug = FALSE; diff --git a/src/wrt400n.c b/src/wrt400n.c index a9a4908..1cf1deb 100644 --- a/src/wrt400n.c +++ b/src/wrt400n.c @@ -7,12 +7,14 @@ * * Author: Sandeep Mistry */ +#include #include #include #include #include #include #include +#include #include "cyg_crc.h" diff --git a/src/zyxbcm.c b/src/zyxbcm.c index cfd00d3..ffeb7cc 100644 --- a/src/zyxbcm.c +++ b/src/zyxbcm.c @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include #include