On 1/25/19 6:25 PM, Joseph Myers wrote:
It's also broken the build of the glibc testsuite, e.g.:

../time/time.h:88:15: error: mismatch in argument 1 type of built-in function 
'strftime'; expected 'char *' [-Werror=builtin-declaration-mismatch]
    88 | extern size_t strftime (char *__restrict __s, size_t __maxsize,

(presence or absence of qualifiers on a parameter is not part of the
function type and should not be compared here).

Not sure I see which pointer the warning is complaining about but
detecting mismatches in constness is intentional.  Users will want
to know when they accidentally swapped the arguments of, say,
memcpy, and declared it as:

  memcpy (const char*, char*, size_t);

Martin

Reply via email to