diff options
author | Timothy B. Terriberry <tterribe@xiph.org> | 2010-10-27 16:04:02 -0700 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2010-10-27 18:08:04 -0700 |
commit | c4d7e5e67ecfcd9730bd512483390369fc9982db (patch) | |
tree | f179a9315909b337a5b441d998aff510cea6d547 /vpx_scale/yv12config.h | |
parent | 2b4913eb0d5722e38d9e28ef458e7e3318e87920 (diff) | |
download | libvpx-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_scale/yv12config.h')
-rw-r--r-- | vpx_scale/yv12config.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vpx_scale/yv12config.h b/vpx_scale/yv12config.h index 50d6e3b3a..5dcee818a 100644 --- a/vpx_scale/yv12config.h +++ b/vpx_scale/yv12config.h @@ -32,8 +32,8 @@ extern "C" ************************************/ typedef enum { - REG_YUV = 0, // Regular yuv - INT_YUV = 1 // The type of yuv that can be tranfer to and from RGB through integer transform + REG_YUV = 0, /* Regular yuv */ + INT_YUV = 1 /* The type of yuv that can be tranfer to and from RGB through integer transform */ } YUV_TYPE; @@ -42,12 +42,12 @@ extern "C" int y_width; int y_height; int y_stride; -// int yinternal_width; +/* int yinternal_width; */ int uv_width; int uv_height; int uv_stride; -// int uvinternal_width; +/* int uvinternal_width; */ unsigned char *y_buffer; unsigned char *u_buffer; @@ -68,4 +68,4 @@ extern "C" #endif -#endif //YV12_CONFIG_H +#endif /*YV12_CONFIG_H*/ |