Warnings in Tremor
The attached patch against SVN r18145 corrects a number of compiler warnings with "gcc -Wall -Wempty-body -Wmissing-declarations -Wpointer-arith -Wstrict-prototypes" on GCC 4.6.1:
-
Adds the ov_fopen() declaration to ivorbisfile.h (since it seems intended to be exported).
-
#includes block.h in block.c to fix missing-declaration warnings.
-
Adds "static" to internal functions which don't have it: res[012]_*() in res012.c, _make_words() and _book_unquantize() in sharedbook.c, and rescale64() in vorbisfile.c.
-
Deletes the unused variable j from vorbis_book_decodev_set() in codebook.c.
This patch doesn't address the int vs. ogg_uint32_t problem with serial numbers that I raised in issue 1838; I'll open that as a separate issue.