From owner-freebsd-current Mon Apr 17 14:52: 9 2000 Delivered-To: freebsd-current@freebsd.org Received: from modemcable127.61-201-24.mtl.mc.videotron.net (modemcable127.61-201-24.mtl.mc.videotron.net [24.201.61.127]) by hub.freebsd.org (Postfix) with SMTP id 6446837B5A8 for ; Mon, 17 Apr 2000 14:52:04 -0700 (PDT) (envelope-from patrick@mindstep.com) Received: (qmail 53940 invoked from network); 17 Apr 2000 21:52:02 -0000 Received: from patrak.local.mindstep.com (HELO PATRAK) (192.168.10.4) by jacuzzi.local.mindstep.com with SMTP; 17 Apr 2000 21:52:02 -0000 Message-ID: <01a501bfa8b7$19f2fe60$040aa8c0@local.mindstep.com> From: "Patrick Bihan-Faou" To: "Poul-Henning Kamp" Cc: References: <12411.956006235@critter.freebsd.dk> Subject: Re: FreeBSD Build status Date: Mon, 17 Apr 2000 17:51:35 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_01A2_01BFA895.92CBDA90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_01A2_01BFA895.92CBDA90 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Hi, I have a patch against these warnings. They are the result of a function being called with a pointer to a function rather than a string... /otte/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-common.c:1655: warning: passing arg 1 of `warning' from incompatible pointer type /otte/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-common.c:1655: warning: passing arg 1 of `warning' from incompatible pointer type /otte/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-common.c:1678: warning: passing arg 1 of `warning' from incompatible pointer type /otte/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-common.c:1678: warning: passing arg 1 of `warning' from incompatible pointer type The patch: --- c-common.c.orig Mon Nov 1 13:41:09 1999 +++ c-common.c Sat Apr 8 06:32:52 2000 @@ -1652,7 +1652,7 @@ /* There should be an int arg to control the string arg. */ if (params == 0) { - warning (tfaff); + tfaff (); return; } if (info->first_arg_num != 0) @@ -1675,7 +1675,7 @@ /* There should be an unsigned char * arg before the string arg. */ if (params == 0) { - warning (tfaff); + tfaff (); return; } if (info->first_arg_num != 0) Should I just send a PR ? Patrick. ------=_NextPart_000_01A2_01BFA895.92CBDA90 Content-Type: application/octet-stream; name="c-common.c.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="c-common.c.patch" --- c-common.c.orig Mon Nov 1 13:41:09 1999=0A= +++ c-common.c Sat Apr 8 06:32:52 2000=0A= @@ -1652,7 +1652,7 @@=0A= /* There should be an int arg to control the string arg. */=0A= if (params =3D=3D 0)=0A= {=0A= - warning (tfaff);=0A= + tfaff ();=0A= return;=0A= }=0A= if (info->first_arg_num !=3D 0)=0A= @@ -1675,7 +1675,7 @@=0A= /* There should be an unsigned char * arg before the string arg. */=0A= if (params =3D=3D 0)=0A= {=0A= - warning (tfaff);=0A= + tfaff ();=0A= return;=0A= }=0A= if (info->first_arg_num !=3D 0)=0A= ------=_NextPart_000_01A2_01BFA895.92CBDA90-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message