From c4d7e5e67ecfcd9730bd512483390369fc9982db Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Wed, 27 Oct 2010 16:04:02 -0700 Subject: Eliminate more warnings. This eliminates a large set of warnings exposed by the Mozilla build system (Use of C++ comments in ISO C90 source, commas at the end of enum lists, a couple incomplete initializers, and signed/unsigned comparisons). It also eliminates many (but not all) of the warnings expose by newer GCC versions and _FORTIFY_SOURCE (e.g., calling fread and fwrite without checking the return values). There are a few spurious warnings left on my system: ../vp8/encoder/encodemb.c:274:9: warning: 'sz' may be used uninitialized in this function gcc seems to be unable to figure out that the value shortcut doesn't change between the two if blocks that test it here. ../vp8/encoder/onyx_if.c:5314:5: warning: comparison of unsigned expression >= 0 is always true ../vp8/encoder/onyx_if.c:5319:5: warning: comparison of unsigned expression >= 0 is always true This is true, so far as it goes, but it's comparing against an enum, and the C standard does not mandate that enums be unsigned, so the checks can't be removed. Change-Id: Iaf689ae3e3d0ddc5ade00faa474debe73b8d3395 --- vpx/vp8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vpx/vp8.h') diff --git a/vpx/vp8.h b/vpx/vp8.h index c7553ec22..d7ed8d8c1 100644 --- a/vpx/vp8.h +++ b/vpx/vp8.h @@ -53,7 +53,7 @@ enum vp8_postproc_level VP8_NOFILTERING = 0, VP8_DEBLOCK = 1, VP8_DEMACROBLOCK = 2, - VP8_ADDNOISE = 4, + VP8_ADDNOISE = 4 }; /*!\brief post process flags -- cgit v1.2.3