]> sourceware.org Git - newlib-cygwin.git/commit
libc: fix fropen/fwopen compile warnings
authorAlexey Lapshin <alexey.lapshin@espressif.com>
Wed, 7 Dec 2022 10:59:23 +0000 (10:59 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Dec 2022 12:10:24 +0000 (13:10 +0100)
commit0b09753a3f0c17164c877cf5ae9ebbc617bcf302
tree98a4ff37f070d8cbe3be32df596891ac4aaa49e2
parent95f5b0a62036ad123042914eb07c5cfa8569828c
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
newlib/libc/include/stdio.h
This page took 0.02675 seconds and 5 git commands to generate.