From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Go8cL/hFVWNOvQ8AWB0awg (envelope-from ) for ; Sun, 23 Oct 2022 09:47:36 -0400 Received: by simark.ca (Postfix, from userid 112) id B611D1E112; Sun, 23 Oct 2022 09:47:36 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=p8Hd1cKY; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 695DF1E0D3 for ; Sun, 23 Oct 2022 09:47:36 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 19F513853562 for ; Sun, 23 Oct 2022 13:47:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19F513853562 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666532856; bh=l4Skcre8wb6B3cOwV8RGw1Y08HtujqSd883GS9+9zS0=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=p8Hd1cKYxcFoK9oEutfdQNHd7yaB6TLcX5d9GMICcnddAHGwvd3pe4/8CRqqQy5fj aNHEu3VG39QGitcDKed0QLwofi5XJJOTmND60Z6TsFHmZSSiwR6l/OFu2T+9xIS2pU kqL4n3U8B/QJpQmeti4l5AiRKJO1UTBEtVjd934Y= Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 2A0343853558 for ; Sun, 23 Oct 2022 13:47:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2A0343853558 Received: by smtp.gentoo.org (Postfix, from userid 559) id BB39B341084; Sun, 23 Oct 2022 13:47:16 +0000 (UTC) Date: Sun, 23 Oct 2022 18:17:50 +0545 To: Andrew Burgess Subject: Re: [PATCH 5/5] sim/iq2000: silence pointer-sign warnings Message-ID: Mail-Followup-To: Andrew Burgess , gdb-patches@sourceware.org References: <89f7a81c43e4b9acf725de1668f7754692e6dd83.1665578246.git.aburgess@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IUQUragEon+AR9lB" Content-Disposition: inline In-Reply-To: <89f7a81c43e4b9acf725de1668f7754692e6dd83.1665578246.git.aburgess@redhat.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --IUQUragEon+AR9lB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12 Oct 2022 13:38, Andrew Burgess via Gdb-patches wrote: > When building the iq2000 simulator I see a few warnings like this: >=20 > /tmp/build/sim/../../src/sim/iq2000/iq2000.c: In function =E2=80=98fetc= h_str=E2=80=99: > /tmp/build/sim/../../src/sim/iq2000/iq2000.c:50:54: error: pointer targ= ets in passing argument 3 of =E2=80=98sim_read=E2=80=99 differ in signednes= s [-Werror=3Dpointer-sign] > 50 | sim_read (CPU_STATE (current_cpu), CPU2DATA(addr), buf, nr); > | ^~~ > | | > | char * >=20 > I've silenced these warnings by casting buf to 'unsigned char *'. > With this change I now see no warnings when compiling iq2000.c, so > I've removed the line from Makefile.in that disables -Werror. i left this warning in place so someone would fix it properly rather than just cast it away -mike --IUQUragEon+AR9lB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmNVNHIACgkQQWM7n+g3 9YGfWBAAp2QNb7Zwg67far+LJCl9gvIoCfAQWk5BS7uJTmkqRLpHCZIANSB/aDda L6vmSrmGD7T2OOa/1q//VbkP+yKJMwN3Wf2ZCZZF6b8ZoNPYTwTSscJikIY2Xb/Y baMX/pXM3fQsKKWFc5phnwSAXRL7eiDYcPzeFzT+R1EnoZunUp5PsCiSXs8S9Yzf TLAYyBSMtluR0Efb7H4bC+SkNkadJyJ1Jaay8TnQ9ZoEl87vID0UdNkvSmqMPbCB 9A0oMfozbJa8tXTmY1M3QH6qM2TLzNUZ6TANd+PCNsGn4K0l+6UZ9+PhkEok62KH gqB0/d71MFicS4YcomuUo6fmSdWt7UURGqKoFqDt8Qcc2iZUFdOAYJrLE/c/+DkW UXUOroWq3uPpYARaElUr4sbLLYk95VOnVlZpvRamMBI1R8M+aLnDxZvxnqn8VaVM rC1fIleCbc8hDlAFqV6R6A8F5EMMG7MFIPi9RiJx9tdQj1tu/kBK/QJp2kHRrkWw Ce/KRE9NDCY0M4UG5QJ44Hf4MV2iU8nnO6bQRZc8vhYJHiiG3wFwYaRH6eBUtL8k VLVlBEaUQxagm40ESVjamXXDbXVNLXHpFuCMSbTD5d43kb0JUBcnMTv92wnTUvZW bbffAZhlFrNB7nuh6wAapM9hHlVGfLDtSnI7a/M5i7Xj6YDIx8I= =9gev -----END PGP SIGNATURE----- --IUQUragEon+AR9lB--