diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog index 980b9587e..f0d6219a4 100644 --- a/winsup/cygserver/ChangeLog +++ b/winsup/cygserver/ChangeLog @@ -1,3 +1,8 @@ +2015-02-23 Corinna Vinschen + + * pwdgrp.cc: Handle default fetch_user_arg_type_t in switches + throughout to silence compiler. + 2015-01-28 Corinna Vinschen * Makefile.in: Simplify rule to build dependencies from cygwin dir. diff --git a/winsup/cygserver/pwdgrp.cc b/winsup/cygserver/pwdgrp.cc index cc12deadd..eb2220583 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);