mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
libc: fix fropen/fwopen compile warnings
This patch fixes warnings that appears when compiling: #define fwopen(__cookie,__fn) funopen(__cookie, (int (*)())0, __fn, (fpos_t (*)())0, (int (*)())0) Expands to: funopen(__null, (int (*)())0, &app_printf, (fpos_t (*)())0, (int (*)())0) argument of type "int (*)()" is incompatible with parameter of type "int (*)(void *__cookie, char *__buf, int __n)"C/C++(167) invalid conversion from 'fpos_t (*)()' {aka 'long int (*)()'} to 'fpos_t (*)(void*, fpos_t, int)' {aka 'long int (*)(void*, Discussion is here: https://github.com/espressif/arduino-esp32/issues/7407
This commit is contained in:
parent
95f5b0a620
commit
0b09753a3f
@ -620,10 +620,8 @@ FILE *_funopen_r (struct _reent *, const void *__cookie,
|
|||||||
int (*__closefn)(void *__cookie));
|
int (*__closefn)(void *__cookie));
|
||||||
# endif /* !__LARGE64_FILES */
|
# endif /* !__LARGE64_FILES */
|
||||||
|
|
||||||
# define fropen(__cookie, __fn) funopen(__cookie, __fn, (int (*)())0, \
|
# define fropen(__cookie, __fn) funopen(__cookie, __fn, NULL, NULL, NULL)
|
||||||
(fpos_t (*)())0, (int (*)())0)
|
# define fwopen(__cookie, __fn) funopen(__cookie, NULL, __fn, NULL, NULL)
|
||||||
# define fwopen(__cookie, __fn) funopen(__cookie, (int (*)())0, __fn, \
|
|
||||||
(fpos_t (*)())0, (int (*)())0)
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* __BSD_VISIBLE */
|
||||||
|
|
||||||
#if __GNU_VISIBLE
|
#if __GNU_VISIBLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user