[PATCH] Remove C++ style comments from string3.h
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Sep 30 16:42:00 GMT 2016
On 30/09/2016 03:17, Florian Weimer wrote:
> * Adhemerval Zanella:
>
>> -// XXX We have no corresponding builtin yet.
>> +/* XXX We have no corresponding builtin yet. */
>> extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,
>> size_t __destlen) __THROW;
>> extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src,
>
> I think the comment is outdated, because such a builtin exists now:
>
> /tmp/t.c:3:22: note: expected âchar *â but argument is of type âintâ
> /tmp/t.c:3:25: warning: passing argument 2 of â__builtin_stpncpyâ makes pointer from integer without a cast
> __builtin_stpncpy (1, 2, 3);
> ^
> This is with gcc version 4.9.2 (Debian 4.9.2-10).
>
> Perhaps remove it and file a bug to clean this up?
>
Good catch, bug report created [1]. I will work on it.
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=20661
More information about the Libc-alpha
mailing list