summaryrefslogtreecommitdiff
path: root/vpx/vpx_codec.h
diff options
context:
space:
mode:
authorTimothy B. Terriberry <tterribe@xiph.org>2010-10-27 16:04:02 -0700
committerJohn Koleszar <jkoleszar@google.com>2010-10-27 18:08:04 -0700
commitc4d7e5e67ecfcd9730bd512483390369fc9982db (patch)
treef179a9315909b337a5b441d998aff510cea6d547 /vpx/vpx_codec.h
parent2b4913eb0d5722e38d9e28ef458e7e3318e87920 (diff)
downloadlibvpx-c4d7e5e67ecfcd9730bd512483390369fc9982db.tar
libvpx-c4d7e5e67ecfcd9730bd512483390369fc9982db.tar.gz
libvpx-c4d7e5e67ecfcd9730bd512483390369fc9982db.tar.bz2
libvpx-c4d7e5e67ecfcd9730bd512483390369fc9982db.zip
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
Diffstat (limited to 'vpx/vpx_codec.h')
-rw-r--r--vpx/vpx_codec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpx/vpx_codec.h b/vpx/vpx_codec.h
index 371df00c3..899b27cca 100644
--- a/vpx/vpx_codec.h
+++ b/vpx/vpx_codec.h
@@ -62,7 +62,7 @@ extern "C" {
/*!\brief Decorator indicating a function is potentially unused */
#ifdef UNUSED
#elif __GNUC__
-#define UNUSED __attribute__ ((unused));
+#define UNUSED __attribute__ ((unused))
#else
#define UNUSED
#endif
@@ -128,7 +128,7 @@ extern "C" {
/*!\brief An iterator reached the end of list.
*
*/
- VPX_CODEC_LIST_END,
+ VPX_CODEC_LIST_END
}
vpx_codec_err_t;