From f3635240b77bd838304320df4a2b84a2de94130c Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 10 Jan 2008 10:35:37 +0000 Subject: Fix a couple of 'return type defaults to int' and 'control reaches end of non-void function' warnings in test code. Originally committed as revision 11491 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/crc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavutil/crc.c') diff --git a/libavutil/crc.c b/libavutil/crc.c index b715a6558d..1de67a6ad1 100644 --- a/libavutil/crc.c +++ b/libavutil/crc.c @@ -130,7 +130,7 @@ uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t le #ifdef TEST #undef printf -main(void){ +int main(void){ uint8_t buf[1999]; int i; int p[4][3]={{AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04}, @@ -146,5 +146,6 @@ main(void){ ctx = av_crc_get_table(p[i][0]); printf("crc %08X =%X\n", p[i][1], av_crc(ctx, 0, buf, sizeof(buf))); } + return 0; } #endif -- cgit v1.2.3