When compiling with gcc-3.0, I get the following warning:

In file included from ../sysdeps/mach/hurd/uname.c:21:
../hurd/hurd.h: In function `__hurd_fail':
../hurd/hurd.h:71: warning: deprecated use of label at end of compound statement

It appears from looking at locale/programs/locale.c (Thanks mmenal!)
that this is the way to fix it.

2001-12-02  Jeff Bailey  <[EMAIL PROTECTED]>

        * hurd/hurd.h (__hurd_fail): Add 'break' to silence gcc-3 warning.

Index: hurd/hurd.h
===================================================================
RCS file: /cvs/glibc/libc/hurd/hurd.h,v
retrieving revision 1.77
diff -u -p -r1.77 hurd.h
--- hurd.h      2001/08/21 20:32:19     1.77
+++ hurd.h      2001/12/02 16:48:55
@@ -68,6 +68,7 @@ __hurd_fail (error_t err)
     case 0:
       return 0;
     default:
+      break;
     }
 
   errno = err;

-- 
Abandon the search for truth; settle for a good fantasy.


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to