diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-02-23 21:00:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-02-23 21:00:31 +0000 |
commit | c9baa8a65b647b5e6f49c0aefdda1a2d2357e646 (patch) | |
tree | 661740828f4516d5581fad19d4606b3223589ce1 /winsup/cygserver | |
parent | bef55bb5c3322c57a0136b63c490e61f230da9be (diff) | |
download | newlib-c9baa8a65b647b5e6f49c0aefdda1a2d2357e646.zip newlib-c9baa8a65b647b5e6f49c0aefdda1a2d2357e646.tar.gz newlib-c9baa8a65b647b5e6f49c0aefdda1a2d2357e646.tar.bz2 |
* pwdgrp.cc: Handle default fetch_user_arg_type_t in switches
throughout to silence compiler.
Diffstat (limited to 'winsup/cygserver')
-rw-r--r-- | winsup/cygserver/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygserver/pwdgrp.cc | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog index 980b958..f0d6219 100644 --- a/winsup/cygserver/ChangeLog +++ b/winsup/cygserver/ChangeLog @@ -1,3 +1,8 @@ +2015-02-23 Corinna Vinschen <corinna@vinschen.de> + + * pwdgrp.cc: Handle default fetch_user_arg_type_t in switches + throughout to silence compiler. + 2015-01-28 Corinna Vinschen <corinna@vinschen.de> * Makefile.in: Simplify rule to build dependencies from cygwin dir. diff --git a/winsup/cygserver/pwdgrp.cc b/winsup/cygserver/pwdgrp.cc index cc12dea..eb22205 100644 --- a/winsup/cygserver/pwdgrp.cc +++ b/winsup/cygserver/pwdgrp.cc @@ -1,6 +1,6 @@ /* pwdgrp.cc: Request account information - Copyright 2014 Red Hat, Inc. + Copyright 2014, 2015 Red Hat, Inc. This file is part of Cygwin. @@ -48,6 +48,8 @@ client_request_pwdgrp::pwd_serve () case ID_arg: pwd = getpwuid (_parameters.in.arg.id); break; + default: + break; } if (pwd) msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line, @@ -79,6 +81,8 @@ client_request_pwdgrp::pwd_serve () case ID_arg: debug_printf ("User <%u> failed", _parameters.in.arg.id); break; + default: + break; } _parameters.out.line[0] = '\0'; msglen (0); @@ -103,6 +107,8 @@ client_request_pwdgrp::grp_serve () case ID_arg: grp = getgrgid (_parameters.in.arg.id); break; + default: + break; } if (grp) msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line, @@ -130,6 +136,8 @@ client_request_pwdgrp::grp_serve () case ID_arg: debug_printf ("Group <%u> failed", _parameters.in.arg.id); break; + default: + break; } _parameters.out.line[0] = '\0'; msglen (0); |