This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.29.9000-65-g712182c


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  712182c8dcc43e34a265268fb209b9dd20967f1e (commit)
      from  eb76e5b465a4b7b569cde4b4f57d1fcb4695c1c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=712182c8dcc43e34a265268fb209b9dd20967f1e

commit 712182c8dcc43e34a265268fb209b9dd20967f1e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Feb 14 20:35:16 2019 +0000

    Fix fall-through warnings in sunrpc/xdr.c.
    
    This patch fixes implicit-fallthrough warnings in sunrpc/xdr.c when
    building with -Wextra.  A fall-through comment is added in three
    places; in two other places, an existing comment is reworded so it
    matches the default patterns used by -Wimplicit-fallthrough.
    
    Tested for x86_64.
    
    	* sunrpc/xdr.c (xdr_int): Add fall-through comment.
    	(xdr_u_int): Likewise.
    	(xdr_enum): Likewise.
    	(xdr_bytes): Reword fall-through comment.
    	(xdr_string): Likewise.

diff --git a/ChangeLog b/ChangeLog
index b6612b7..d9852ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-02-14  Joseph Myers  <joseph@codesourcery.com>
+
+	* sunrpc/xdr.c (xdr_int): Add fall-through comment.
+	(xdr_u_int): Likewise.
+	(xdr_enum): Likewise.
+	(xdr_bytes): Reword fall-through comment.
+	(xdr_string): Likewise.
+
 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	[BZ #2421]
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index 8b0b919..b5fb745 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -113,6 +113,7 @@ xdr_int (XDR *xdrs, int *ip)
 	  return FALSE;
 	}
       *ip = (int) l;
+      /* Fall through.  */
     case XDR_FREE:
       return TRUE;
     }
@@ -152,6 +153,7 @@ xdr_u_int (XDR *xdrs, u_int *up)
 	  return FALSE;
 	}
       *up = (u_int) (u_long) l;
+      /* Fall through.  */
     case XDR_FREE:
       return TRUE;
     }
@@ -506,6 +508,7 @@ xdr_enum (XDR *xdrs, enum_t *ep)
 	      return FALSE;
 	    }
 	  *ep = l;
+	  /* Fall through.  */
 	case XDR_FREE:
 	  return TRUE;
 
@@ -628,7 +631,7 @@ xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
 	  (void) __fxprintf (NULL, "%s: %s", __func__, _("out of memory\n"));
 	  return FALSE;
 	}
-      /* fall into ... */
+      /* Fall through.  */
 
     case XDR_ENCODE:
       return xdr_opaque (xdrs, sp, nodesize);
@@ -789,7 +792,7 @@ xdr_string (XDR *xdrs, char **cpp, u_int maxsize)
 	  return FALSE;
 	}
       sp[size] = 0;
-      /* fall into ... */
+      /* Fall through.  */
 
     case XDR_ENCODE:
       return xdr_opaque (xdrs, sp, size);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog    |    8 ++++++++
 sunrpc/xdr.c |    7 +++++--
 2 files changed, 13 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]