From: Bart Van Assche Date: Mon, 6 Jan 2020 19:00:24 +0000 (-0800) Subject: configure: Improve the getopt_long_only() test X-Git-Tag: fio-3.18~18^2~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d24ff97df43cfa9ad8c78dc7d74b2a602b174768;p=fio.git 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 --- diff --git a/configure b/configure index 65ce3662..c11b7cda 100755 --- a/configure +++ b/configure @@ -1374,7 +1374,7 @@ cat > $TMPC << EOF #include 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