buildworld failed with '-O3' in 6-current

From: Lihong Chen <lihong.chen_at_gmail.com>
Date: Fri, 29 Apr 2005 23:16:33 +0800
Hi!
I try to buildworld using gcc -O3, but some file will failed.
they are using fuctions not consist with declared, like these:
--- /usr/src/lib/libc/rpc/getpublickey.c.orig	Fri Apr 29 02:10:53 2005
+++ /usr/src/lib/libc/rpc/getpublickey.c	Fri Apr 29 02:13:02 2005
_at__at_ -175,5 +175,5 _at__at_
 	if (__getpublickey_LOCAL != NULL)
 		return(__getpublickey_LOCAL(netname, publickey));
 	else
-		return(__getpublickey_real(netname, publickey));
+		return(__getpublickey_real((char*)netname, publickey));
 }

--- /usr/src/sbin/ip6fw/ip6fw.c.orig	Fri Apr 29 07:24:33 2005
+++ /usr/src/sbin/ip6fw/ip6fw.c	Fri Apr 29 07:25:47 2005
_at__at_ -1112,7 +1112,7 _at__at_
 				if (!ac)
 					show_usage("missing argument"
 					    " for ``icmptypes''");
-				fill_icmptypes(rule.fw_icmp6types,
+				fill_icmptypes((u_long*)rule.fw_icmp6types,
 				    av, &rule.fw_flg);
 				av++; ac--; continue;
 			}

--- /usr/src/lib/libc/net/res_debug.c.orig	Fri Apr 29 02:00:24 2005
+++ /usr/src/lib/libc/net/res_debug.c	Fri Apr 29 02:01:53 2005
_at__at_ -783,7 +783,7 _at__at_
 	if (cp >= maxcp)
 		goto defaults;
 
-	siz = precsize_aton(&cp);
+	siz = precsize_aton((char**)&cp);
 	
 	while (!isspace((unsigned char)*cp) && (cp < maxcp))   /* if
trailing garbage or m */
 		cp++;
_at__at_ -794,7 +794,7 _at__at_
 	if (cp >= maxcp)
 		goto defaults;
 
-	hp = precsize_aton(&cp);
+	hp = precsize_aton((char**)&cp);
 
 	while (!isspace((unsigned char)*cp) && (cp < maxcp))   /* if
trailing garbage or m */
 		cp++;
_at__at_ -805,7 +805,7 _at__at_
 	if (cp >= maxcp)
 		goto defaults;
 
-	vp = precsize_aton(&cp);
+	vp = precsize_aton((char**)&cp);
 
  defaults:
Received on Fri Apr 29 2005 - 13:16:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:33 UTC