From 07a87aa599a8fc32e938d9987bd2b59eebcfcb76 Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Mon, 26 Jul 2010 11:37:19 -0700 Subject: mtd-utils: clean up compile warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 4.4.3 on x86_64: libcrc32.c:42: warning: ‘static’ is not at beginning of declaration libfec.c:120: warning: initialization discards qualifiers from pointer target type libfec.c:121: warning: initialization discards qualifiers from pointer target type libfec.c:417: warning: passing argument 2 of ‘my_malloc’ discards qualifiers from pointer target type recv_image.c:164: warning: comparison of unsigned expression < 0 is always false recv_image.c:170: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’ recv_image.c:170: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’ And many more along the same lines. Signed-off-by: Kevin Cernekee Signed-off-by: Artem Bityutskiy --- lib/libcrc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libcrc32.c') diff --git a/lib/libcrc32.c b/lib/libcrc32.c index d556e91..d47a842 100644 --- a/lib/libcrc32.c +++ b/lib/libcrc32.c @@ -39,7 +39,7 @@ #include -const static uint32_t crc32_table[256] = { +static const uint32_t crc32_table[256] = { 0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L, 0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L, 0xe0d5e91eL, 0x97d2d988L, 0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L, -- cgit v1.2.3