| author | |
| committer | |
| log | 72a7e3dc5e3d2128f4d95b7ba9554ea2e6e35139 |
| tree | 6a810c5a9f8952226508f3344250ddd1cecc9ed6 |
| parent | 304420b99ced44e1b7ebd34d7c3917879cb78648 |
this patch is from upstream, to fix -Wdeprecated-non-prototypes issues.
K&R-style has apparently been deprecated since even C89, and C2x will be
repurposing the syntax space. this warning triggers when the change would
affect the meaning of the code.4 files changed, 4 insertions(+), 16 deletions(-)
lib/libc/mingw/misc/strtoimax.c+1-4| ... | ... | @@ -31,10 +31,7 @@ |
| 31 | 31 | #define valid(n, b)	((n) >= 0 && (n) < (b)) |
| 32 | 32 | |
| 33 | 33 | intmax_t |
| 34 | strtoimax(nptr, endptr, base) | |
| 35 | 	register const char * __restrict__	nptr; | |
| 36 | 	char ** __restrict__			endptr; | |
| 37 | 	register int				base; | |
| 34 | strtoimax(const char * __restrict__ nptr, char ** __restrict__ endptr, int base) | |
| 38 | 35 | 	{ |
| 39 | 36 | 	register uintmax_t	accum;	/* accumulates converted value */ |
| 40 | 37 | 	register int		n;	/* numeral from digit character */ |
lib/libc/mingw/misc/strtoumax.c+1-4| ... | ... | @@ -31,10 +31,7 @@ |
| 31 | 31 | #define valid(n, b)	((n) >= 0 && (n) < (b)) |
| 32 | 32 | |
| 33 | 33 | uintmax_t |
| 34 | strtoumax(nptr, endptr, base) | |
| 35 | 	register const char * __restrict__	nptr; | |
| 36 | 	char ** __restrict__			endptr; | |
| 37 | 	register int				base; | |
| 34 | strtoumax(const char * __restrict__ nptr, char ** __restrict__ endptr, int base) | |
| 38 | 35 | 	{ |
| 39 | 36 | 	register uintmax_t	accum;	/* accumulates converted value */ |
| 40 | 37 | 	register uintmax_t	next;	/* for computing next value of accum */ |
lib/libc/mingw/misc/wcstoimax.c+1-4| ... | ... | @@ -33,10 +33,7 @@ |
| 33 | 33 | #define valid(n, b)	((n) >= 0 && (n) < (b)) |
| 34 | 34 | |
| 35 | 35 | intmax_t |
| 36 | wcstoimax(nptr, endptr, base) | |
| 37 | 	register const wchar_t * __restrict__	nptr; | |
| 38 | 	wchar_t ** __restrict__				endptr; | |
| 39 | 	register int					base; | |
| 36 | wcstoimax(const wchar_t * __restrict__ nptr, wchar_t ** __restrict__ endptr, int base) | |
| 40 | 37 | 	{ |
| 41 | 38 | 	register uintmax_t	accum;	/* accumulates converted value */ |
| 42 | 39 | 	register int		n;	/* numeral from digit character */ |
lib/libc/mingw/misc/wcstoumax.c+1-4| ... | ... | @@ -33,10 +33,7 @@ |
| 33 | 33 | #define valid(n, b)	((n) >= 0 && (n) < (b)) |
| 34 | 34 | |
| 35 | 35 | uintmax_t |
| 36 | wcstoumax(nptr, endptr, base) | |
| 37 | 	register const wchar_t * __restrict__	nptr; | |
| 38 | 	wchar_t ** __restrict__				endptr; | |
| 39 | 	register int					base; | |
| 36 | wcstoumax(const wchar_t * __restrict__ nptr, wchar_t ** __restrict__ endptr, int base) | |
| 40 | 37 | 	{ |
| 41 | 38 | 	register uintmax_t	accum;	/* accumulates converted value */ |
| 42 | 39 | 	register uintmax_t	next;	/* for computing next value of accum */ |