Add compiler warning flag -Wextra and fix related warnings.
Note: some of these warnings are enabled by a combination of -Wunused (added earlier) and -Wextra. Cherry-picked from aomedia/master: 4790a69 Change-Id: I322a1366bd4fd6c0dec9e758c2d5e88e003b1cbf
This commit is contained in:
@@ -63,13 +63,17 @@ int main(int argc, char **argv) {
|
||||
int frame_count = 0;
|
||||
aom_image_t raw;
|
||||
aom_codec_err_t res;
|
||||
AvxVideoInfo info = { 0 };
|
||||
AvxVideoInfo info;
|
||||
AvxVideoWriter *writer = NULL;
|
||||
const AvxInterface *encoder = NULL;
|
||||
const int fps = 30;
|
||||
|
||||
exec_name = argv[0];
|
||||
|
||||
// Clear explicitly, as simply assigning "{ 0 }" generates
|
||||
// "missing-field-initializers" warning in some compilers.
|
||||
memset(&info, 0, sizeof(info));
|
||||
|
||||
if (argc < 5) die("Invalid number of arguments");
|
||||
|
||||
encoder = get_aom_encoder_by_name("av1");
|
||||
|
||||
Reference in New Issue
Block a user