This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.19-789-g6ee3eab
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 9 Jul 2014 05:08:28 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.19-789-g6ee3eab
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 6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad (commit)
via 6680738a18fc219de2e4f7be1d53e4fb251f1166 (commit)
from e35c53e397e7abbd41fedacdedcfa5af7b5c2c52 (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=6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad
commit 6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Wed Jul 9 10:36:50 2014 +0530
Fix -Wmaybe-uninitialized warning in xdr.c
While we're at fixing build warnings, here's one unnecessary warning
that can be fixed fairly easily. The SIZE variable is never actually
use uninitialized, but the compiler cannot make that out and thinks
(correctly) that there is a potential for accessing SIZE without
initializing it. Make this safe by initializing SIZE to 0.
Tested on x86_64.
diff --git a/ChangeLog b/ChangeLog
index b70d337..0773d7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-07-09 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
+
* sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
defined.
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index b3f96ca..129abd8 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -739,7 +739,7 @@ xdr_string (xdrs, cpp, maxsize)
u_int maxsize;
{
char *sp = *cpp; /* sp is the actual string pointer */
- u_int size;
+ u_int size = 0;
u_int nodesize;
/*
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6680738a18fc219de2e4f7be1d53e4fb251f1166
commit 6680738a18fc219de2e4f7be1d53e4fb251f1166
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Wed Jul 9 10:36:23 2014 +0530
Fix Wundef warning for __cplusplus
All current uses of the __cplusplus macro only check if it is defined
or not. Fix this #if to use $ifdef like the rest of the code.
diff --git a/ChangeLog b/ChangeLog
index 5892add..b70d337 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-09 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
+ defined.
+
2014-07-08 Siddhesh Poyarekar <siddhesh@redhat.com>
* resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
diff --git a/sysdeps/generic/unwind-pe.h b/sysdeps/generic/unwind-pe.h
index a4afe5c..a6ee414 100644
--- a/sysdeps/generic/unwind-pe.h
+++ b/sysdeps/generic/unwind-pe.h
@@ -22,7 +22,7 @@
than duplicating code, however. */
/* If using C++, references to abort have to be qualified with std::. */
-#if __cplusplus
+#ifdef __cplusplus
#define __gxx_abort std::abort
#else
#define __gxx_abort abort
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
sunrpc/xdr.c | 2 +-
sysdeps/generic/unwind-pe.h | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources