From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 214A13858C33; Fri, 13 Jan 2023 22:28:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 214A13858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673648918; bh=xbDVWu+LQtfgwV4Im/fOdglWCH4AR3w1bbk4YD06HeM=; h=From:To:Subject:Date:From; b=oiEf8SSz/Tt1y+gyV0bC0Xe1rLkeAzpATWjFwTcasTaQ3Q50uFz0W6oQnn1hPDqTq jyCdA03YxF3TCLUIYmmfQEwrP6LOIoDrzhxnNKDLpnP75REImfgCy91xYIKbyhVjeL e8RjKX/ZMP7LdTiS3ppJjzLrKJdSs1EL4NXuwQ+o= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] libgloss: csky: fix pointer-to-integer warning X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/main X-Git-Oldrev: 4391d2aed3d4878c5a63f59d2a768f5d38f3936d X-Git-Newrev: 73e4ded2fe17b3a970c94a421c4b2191ca49a194 Message-Id: <20230113222838.214A13858C33@sourceware.org> Date: Fri, 13 Jan 2023 22:28:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D73e4ded2fe1= 7b3a970c94a421c4b2191ca49a194 commit 73e4ded2fe17b3a970c94a421c4b2191ca49a194 Author: Mike Frysinger Date: Thu Jan 12 23:36:07 2023 -0500 libgloss: csky: fix pointer-to-integer warning =20 parameters is an array of integers, so assigning NULL (a pointer) doesn't make sense. Use 0 instead which produces the same code. Diff: --- libgloss/csky/io-gettimeofday.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgloss/csky/io-gettimeofday.c b/libgloss/csky/io-gettimeofda= y.c index 77f446fb8..59b1abb83 100644 --- a/libgloss/csky/io-gettimeofday.c +++ b/libgloss/csky/io-gettimeofday.c @@ -43,7 +43,7 @@ int gettimeofday (struct timeval *tv, void *tzvp) return -1; } parameters[0] =3D (uint32_t) >v; - parameters[1] =3D NULL; + parameters[1] =3D 0; ret =3D __hosted (HOSTED_GETTIMEOFDAY, parameters); __hosted_from_gdb_timeval (>v, tv); errno =3D __hosted_from_gdb_errno (parameters[0]);