[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] strftime: don't use __THROW
From: |
Paul Eggert |
Subject: |
Re: [PATCH] strftime: don't use __THROW |
Date: |
Tue, 15 Nov 2016 08:46:18 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 11/15/2016 08:07 AM, Bruno Haible wrote:
I don't understand why you see this warning but the glibc developers
haven't noticed it yet??
I was puzzled about that too.
For what it's worth, those __THROWs were introduced to glibc in 2004 by
Ulrich Drepper, here:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=79937577d1e3e01b3fcc618366a9d7f78feed272
with no comment explaining why. Perhaps the compilers of the time
weren't smart enough to figure this stuff out automatically for static
functions. Anyway, the __THROWs should not be needed now. I verified
that they don't affect the code generated for x86-64 on Fedora 24 (gcc
Red Hat 6.2.1-2).