From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id CEBF5383F21F for ; Wed, 7 Dec 2022 12:23:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CEBF5383F21F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670415799; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=A5vOwa+faq0Yvtvn22vy/6Fc8gXaSGx1U68feYGSG2U=; b=gDE8CLYvYJZfKjGue4MGClvzAhQD1t+HwYULJ+v2gzc5L2lOHYLyP8cshvH0h5AxqeKfMJ 4pim3vbyK3XcL0RrWX1l5F0JEbGQt/dy9wpa0STacYRPxGV78bvkbu2eyBzViR9sV/tDuk 9bQeHKVEkqncoxEvEhzPXQGXeKHAfmY= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-202-p56dfCKCM3qTajl_05dgvA-1; Wed, 07 Dec 2022 07:23:18 -0500 X-MC-Unique: p56dfCKCM3qTajl_05dgvA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 081133C0E45A; Wed, 7 Dec 2022 12:23:18 +0000 (UTC) Received: from calimero.vinschen.de (unknown [10.39.192.219]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D0DE81415100; Wed, 7 Dec 2022 12:23:17 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 699C4A8167A; Wed, 7 Dec 2022 13:23:14 +0100 (CET) Date: Wed, 7 Dec 2022 13:23:14 +0100 From: Corinna Vinschen To: Alexey Lapshin Cc: "newlib@sourceware.org" , Alexey Gerenkov , Ivan Grokhotkov , Anton Maklakov Subject: Re: [PATCH] libc: fix fropen/fwopen compile warnings Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: Alexey Lapshin , "newlib@sourceware.org" , Alexey Gerenkov , Ivan Grokhotkov , Anton Maklakov References: <7df8cf98f3652657eb0ff11565a8597af4e1e004.camel@espressif.com> MIME-Version: 1.0 In-Reply-To: <7df8cf98f3652657eb0ff11565a8597af4e1e004.camel@espressif.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Alexey, On Dec 7 10:59, Alexey Lapshin wrote: > 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 Pushed. Thanks, Corinna