Get rid of duplicate const declaration specifier warning in tst-resolv-qtypes.c.
H.J. Lu
hjl.tools@gmail.com
Thu Sep 7 20:05:00 GMT 2017
On Thu, Sep 7, 2017 at 12:51 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> H.J. Lu wrote:
>>>
>>> Why not:
>>>
>>> static const char domain[] = "www.example.com";
>>>
>>> instead, before you backport? It's simpler and less confusing.
>
>
>> If we want to do this, it should go into master branch first and
>> backport it 2.26 branch before putting in 2.25 branch. Should
>> we do it?
>
>
> Yes, that's the idea.
Here is the patch. Tested with GCC 7 on x86-64.
OK for master and 2.25/2.26 branches?
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-static-const-char-domain.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170907/abd927b4/attachment.bin>
More information about the Libc-alpha
mailing list