mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-27 02:31:42 +01:00
Fix getenv/getopt and other function prototypes with gcc 15.
```
getopt.c:366:21: error: too many arguments to function 'getenv'; expected 0, have 1
366 | posixly_correct = getenv ("POSIXLY_CORRECT");
| ^~~~~~ ~~~~~~~~~~~~~~~~~
getopt.c:214:7: note: declared here
214 | char *getenv ();
| ^~~~~~
```
```
getopt.c:922:1: error: number of arguments doesn't match prototype
922 | {
| ^
In file included from getopt.c:113:
getopt.h:108:12: error: prototype declaration
108 | extern int getopt ();
| ^~~~~~
```
```
regex.c:3565:13: error: too many arguments to function 're_match_2_internal'; expected 0, have 8
3565 | val = re_match_2_internal (bufp, string1, size1, string2, size2,
| ^~~~~~~~~~~~~~~~~~~ ~~~~
regex.c:339:12: note: declared here
339 | static int re_match_2_internal ();
| ^~~~~~~~~~~~~~~~~~~
```