bin/65492: [patch] make traceroute compile with gcc 3.4

Pawel Worach sajd at telia.com
Tue Apr 13 08:50:19 PDT 2004


>Number:         65492
>Category:       bin
>Synopsis:       [patch] make traceroute compile with gcc 3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 08:50:18 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Worach
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 5.2-CURRENT #0: Fri Apr 9 05:08:50 MEST 2004


>Description:
	traceroute does not compile with stock FSF gcc 3.4 prerelease.
	error: label at end of compound statement

>How-To-Repeat:
	cd src/usr.sbin/traceroute && make CC="mygcc34"
>Fix:

	add break after empty default: label

--- patch begins here ---
Index: contrib/traceroute/findsaddr-socket.c
===================================================================
RCS file: /export/ctm/cvs/src/contrib/traceroute/findsaddr-socket.c,v
retrieving revision 1.2
diff -u -r1.2 findsaddr-socket.c
--- contrib/traceroute/findsaddr-socket.c	30 Jul 2002 04:49:13 -0000	1.2
+++ contrib/traceroute/findsaddr-socket.c	13 Apr 2004 15:28:35 -0000
@@ -192,6 +192,7 @@
 
 			default:
 				/* empty */
+				break;
 			}
 
 			if (SALEN(sa) == 0)
--- patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list