bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove warning when compiling with gcc-3.0


From: Jeff Bailey
Subject: Remove warning when compiling with gcc-3.0
Date: Sun, 2 Dec 2001 08:53:51 -0800
User-agent: Mutt/1.2.5i

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  <jbailey@nisa.net>

        * 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]