# HG changeset patch # User Matti Hamalainen # Date 1493219958 -10800 # Node ID 86b6c976ef2dd12d1cf37deb985edaa987aa35c7 # Parent 29527d65b71ae74fbc5056e641b60d6d9296349c Fix some warnings by adding missing field initializers for long opts. diff -r 29527d65b71a -r 86b6c976ef2d bpgenc.c --- a/bpgenc.c Sun Dec 18 10:52:06 2016 +0200 +++ b/bpgenc.c Wed Apr 26 18:19:18 2017 +0300 @@ -2930,16 +2930,16 @@ } struct option long_opts[] = { - { "hash", no_argument }, - { "keepmetadata", no_argument }, - { "alphaq", required_argument }, - { "lossless", no_argument }, - { "limitedrange", no_argument }, - { "premul", no_argument }, - { "loop", required_argument }, - { "fps", required_argument }, - { "delayfile", required_argument }, - { NULL }, + { "hash" , no_argument , NULL, 0 }, + { "keepmetadata" , no_argument , NULL, 0 }, + { "alphaq" , required_argument , NULL, 0 }, + { "lossless" , no_argument , NULL, 0 }, + { "limitedrange" , no_argument , NULL, 0 }, + { "premul" , no_argument , NULL, 0 }, + { "loop" , required_argument , NULL, 0 }, + { "fps" , required_argument , NULL, 0 }, + { "delayfile" , required_argument , NULL, 0 }, + { NULL , 0 , NULL, 0 }, }; int main(int argc, char **argv)