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.25-67-gd4f9436
- From: stli at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 24 Feb 2017 12:33:42 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-67-gd4f9436
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 d4f94368a96541db2b38b6535402a941f5aff975 (commit)
from 92061bb033f093cca76e31745cac14c43a1fb29b (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=d4f94368a96541db2b38b6535402a941f5aff975
commit d4f94368a96541db2b38b6535402a941f5aff975
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
Date: Fri Feb 24 13:30:13 2017 +0100
Get rid of duplicate const declaration specifier warning in tst-resolv-qtypes.c.
Compiling resolv/tst-resolv-qtypes.c with GCC 7 results in:
tst-resolv-qtypes.c:53:14: error: duplicate â??constâ?? declaration specifier [-Werror=duplicate-decl-specifier]
static const const char *domain = "www.example.com";
This patch removes the duplicate const and makes domain a const pointer
to const char literal.
ChangeLog:
* resolv/tst-resolv-qtypes.c (domain):
Change type to const pointer to const char.
diff --git a/ChangeLog b/ChangeLog
index da57aba..2734e30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-24 Stefan Liebler <stli@linux.vnet.ibm.com>
+
+ * resolv/tst-resolv-qtypes.c (domain):
+ Change type to const pointer to const char.
+
2017-02-24 Joseph Myers <joseph@codesourcery.com>
* math/Makefile (libm-tests-generated): Remove variable.
diff --git a/resolv/tst-resolv-qtypes.c b/resolv/tst-resolv-qtypes.c
index dcb39e5..06ea3db 100644
--- a/resolv/tst-resolv-qtypes.c
+++ b/resolv/tst-resolv-qtypes.c
@@ -50,7 +50,7 @@ response (const struct resolv_response_context *ctx,
resolv_response_close_record (b);
}
-static const const char *domain = "www.example.com";
+static const char * const domain = "www.example.com";
static int
wrap_res_query (int type, unsigned char *answer, int answer_length)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
resolv/tst-resolv-qtypes.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources