Date: Mon, 17 Apr 2000 17:51:35 -0400 From: "Patrick Bihan-Faou" <patrick@mindstep.com> To: "Poul-Henning Kamp" <phk@critter.freebsd.dk> Cc: <freebsd-current@FreeBSD.ORG> Subject: Re: FreeBSD Build status Message-ID: <01a501bfa8b7$19f2fe60$040aa8c0@local.mindstep.com> References: <12411.956006235@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
[-- Attachment #2 --]
--- 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01a501bfa8b7$19f2fe60$040aa8c0>
