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-27-g7a0dcfc


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  7a0dcfc6439cd4e19bf393c2e2347e385361a82c (commit)
      from  65f7767a914144ae303f7b9ae81865061793dcb9 (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=7a0dcfc6439cd4e19bf393c2e2347e385361a82c

commit 7a0dcfc6439cd4e19bf393c2e2347e385361a82c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Feb 4 14:48:43 2019 +0000

    Remove duplicate initialization of field in nscd.
    
    I'm looking at the warnings from building glibc with -Wextra, to see
    if we could use -Wextra by default, possibly with a few of its
    warnings disabled, and so benefit from warnings in -Wextra but not in
    -Wall.  (The vast bulk of the extra warnings so produced are from
    -Wunused-parameter -Wsign-compare -Wmissing-field-initializers
    -Wtype-limits, so I expect those would be disabled at least at first.)
    
    Various miscellaneous warnings show up with -Wextra that it clearly
    seems to make sense to fix independent of whether we add -Wextra to
    the normal options for building glibc.  This patch fixes one:
    "initialized field overwritten [-Woverride-init]" in nscd.
    
    Tested for x86_64.
    
    	* nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
    	once.

diff --git a/ChangeLog b/ChangeLog
index ef96886..d73c815 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-04  Joseph Myers  <joseph@codesourcery.com>
+
+	* nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
+	once.
+
 2019-02-04  Andreas Schwab  <schwab@suse.de>
 
 	[BZ #16976]
diff --git a/nscd/connections.c b/nscd/connections.c
index 61cf27e..a9bc00d 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -227,7 +227,6 @@ static struct
   [GETHOSTBYADDRv6] = { true, &dbs[hstdb] },
   [SHUTDOWN] = { false, NULL },
   [GETSTAT] = { false, NULL },
-  [SHUTDOWN] = { false, NULL },
   [GETFDPW] = { false, &dbs[pwddb] },
   [GETFDGR] = { false, &dbs[grpdb] },
   [GETFDHST] = { false, &dbs[hstdb] },

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

Summary of changes:
 ChangeLog          |    5 +++++
 nscd/connections.c |    1 -
 2 files changed, 5 insertions(+), 1 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]