Fix the following build error if configure is invoked with
--extra-cflags=-Werror:
/tmp/fio-conf-20209-133775-26866.c: In function 'main':
/tmp/fio-conf-20209-133775-26866.c:6:11: error: null argument where non-null required (argument 3) [-Werror=nonnull]
int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
#include <getopt.h>
int main(int argc, char **argv)
{
- int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
+ int c = getopt_long_only(argc, argv, "", NULL, NULL);
return c;
}
EOF