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
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Nov 2025 16:09:54 UTC
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