about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-12-02 19:45:22 +0000
committerRoland McGrath <roland@gnu.org>2001-12-02 19:45:22 +0000
commit4f904363e44d029a09f86059f61ae3c3e7c6593c (patch)
tree7f41e4d281bb2d96f099bbf0704668b6e89fec98
parent5ca3ec06e0d1dc5eb0def5697f914fcce3f1d774 (diff)
downloadglibc-4f904363e44d029a09f86059f61ae3c3e7c6593c.tar.gz
glibc-4f904363e44d029a09f86059f61ae3c3e7c6593c.tar.xz
glibc-4f904363e44d029a09f86059f61ae3c3e7c6593c.zip
* hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
	Reported by Jeff Bailey <jbailey@nisa.net>.

	Reported by Jeff Bailey <jbailey@nisa.net>.
-rw-r--r--ChangeLog4
-rw-r--r--hurd/hurd.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0cd0523503..520fa1f52e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2001-12-02  Roland McGrath  <roland@frob.com>
 
+	* hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
+	Reported by Jeff Bailey <jbailey@nisa.net>.
+
 	* hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
+	Reported by Jeff Bailey <jbailey@nisa.net>.
 
 	* mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
 	* mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
diff --git a/hurd/hurd.h b/hurd/hurd.h
index 6ba73b25fd..44c0b99184 100644
--- a/hurd/hurd.h
+++ b/hurd/hurd.h
@@ -61,13 +61,16 @@ __hurd_fail (error_t err)
     case KERN_NO_SPACE:
       err = ENOMEM;
       break;
+
     case KERN_INVALID_ARGUMENT:
       err = EINVAL;
       break;
 
     case 0:
       return 0;
+
     default:
+      break;
     }
 
   errno = err;