Date: Sat, 8 Nov 2025 08:09:54 -0800 From: Mark Millard <marklmi@yahoo.com> To: FreeBSD Current <freebsd-current@freebsd.org> Subject: FYI: getopt in /usr/src/contrib/diff/lib/getopt.h vs. /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/unistd.h : reported as incompatible with future C23 use Message-ID: <B5362682-0A91-4213-890F-E3C4CFA04911@yahoo.com>
index | next in thread | raw e-mail
In file included from /usr/src/contrib/diff/src/diff3.c:32:
/usr/src/contrib/diff/lib/getopt.h:154:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype]
154 | extern int getopt ();
| ^
/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/unistd.h:384:6: note: conflicting prototype is here
384 | int getopt(int, char * const [], const char *);
| ^
===
Mark Millard
marklmi at yahoo.com
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B5362682-0A91-4213-890F-E3C4CFA04911>
