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.29.9000-67-g365f05c
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 15 Feb 2019 13:44:58 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.29.9000-67-g365f05c
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 365f05c7a5f16aaaec06465ab6c89247c66b4574 (commit)
from 56a731d4ad319e473851893980e734b7ee42c1a0 (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=365f05c7a5f16aaaec06465ab6c89247c66b4574
commit 365f05c7a5f16aaaec06465ab6c89247c66b4574
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri Feb 15 13:44:17 2019 +0000
Fix implicit-fallthrough warnings in tst-setjmp.c.
Building the testsuite with -Wextra (together with
-Wno-cast-function-type -Wno-clobbered -Wno-expansion-to-defined
-Wno-missing-field-initializers -Wno-old-style-declaration
-Wno-shift-negative-value -Wno-sign-compare -Wno-type-limits
-Wno-unused-parameter, which reflect the set of -Wextra warnings for
which glibc itself is not currently clean on x86_64) showed up
implicit-fallthrough warnings in tst-setjmp.c. Those warnings appear
to be false positives, arising from a function "jump" that calls
longjmp not itself being marked as noreturn; thus, this patch adds the
noreturn marking to that function to fix the warnings.
Tested for x86_64.
* setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
diff --git a/ChangeLog b/ChangeLog
index d3560ad..0c45e9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-15 Joseph Myers <joseph@codesourcery.com>
+
+ * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
+
2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
* scripts/test_printers_common.py: Set TERM to a known harmless
diff --git a/setjmp/tst-setjmp.c b/setjmp/tst-setjmp.c
index e83e896..b377393 100644
--- a/setjmp/tst-setjmp.c
+++ b/setjmp/tst-setjmp.c
@@ -22,7 +22,7 @@
static jmp_buf env;
static int last_value = -1, lose = 0;
-static void
+static __attribute__ ((__noreturn__)) void
jump (int val)
{
longjmp (env, val);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
setjmp/tst-setjmp.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources