mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
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.
This commit is contained in:
parent
92061bb033
commit
d4f94368a9
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user