configure: Improve the getopt_long_only() test
authorBart Van Assche <bvanassche@acm.org>
Mon, 6 Jan 2020 19:00:24 +0000 (11:00 -0800)
committerBart Van Assche <bvanassche@acm.org>
Mon, 6 Jan 2020 19:01:38 +0000 (11:01 -0800)
commitd24ff97df43cfa9ad8c78dc7d74b2a602b174768
tree65689cf504a724a1c556b942f91820728c1597cb
parent40dae137d10e4053993599b4d85f351468b1b5df
configure: Improve the getopt_long_only() test

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>
configure