i386/65493: [patch] make sys/boot/{i386,pc98}/lib{i386,pc98}/biosdisk.c compile with gcc 3.4

Pawel Worach sajd at telia.com
Tue Apr 13 09:10:20 PDT 2004


>Number:         65493
>Category:       i386
>Synopsis:       [patch] make sys/boot/{i386,pc98}/lib{i386,pc98}/biosdisk.c compile with gcc 3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 09:10:19 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:
	sys/boot/{i386,pc98}/lib{i386,pc98}/biosdisk.c
	does not compile with gcc 3.4.
	error: label at end of compound statement

>How-To-Repeat:
	cd sys/boot/i386/libi386 && make obj && make CC="mygcc34"

>Fix:

	add break after empty default: labels

--- patch begins here ---
Index: sys/boot/i386/libi386/biosdisk.c
===================================================================
RCS file: /export/ctm/cvs/src/sys/boot/i386/libi386/biosdisk.c,v
retrieving revision 1.41
diff -u -r1.41 biosdisk.c
--- sys/boot/i386/libi386/biosdisk.c	21 Jan 2004 23:22:29 -0000	1.41
+++ sys/boot/i386/libi386/biosdisk.c	13 Apr 2004 15:52:06 -0000
@@ -833,6 +833,7 @@
     return (0);
 		default:
 		 /* DO NOTHING */
+		 break;
 	}
 
 	return EROFS;
Index: sys/boot/pc98/libpc98/biosdisk.c
===================================================================
RCS file: /export/ctm/cvs/src/sys/boot/pc98/libpc98/biosdisk.c,v
retrieving revision 1.25
diff -u -r1.25 biosdisk.c
--- sys/boot/pc98/libpc98/biosdisk.c	8 Sep 2003 09:11:20 -0000	1.25
+++ sys/boot/pc98/libpc98/biosdisk.c	13 Apr 2004 15:52:11 -0000
@@ -343,6 +343,7 @@
 			    line, verbose);
 			break;
 		    default:
+			break;
 		    }
 		}
 #else
@@ -988,6 +989,7 @@
     return (0);
 		default:
 		 /* DO NOTHING */
+		 break;
 	}
 
 	return EROFS;
--- patch ends here ---


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


More information about the freebsd-i386 mailing list