BZ #13908 Fix mktemp attribute and comment

Carlos O'Donell carlos@systemhalted.org
Wed Apr 4 15:59:00 GMT 2012


On Wed, Apr 4, 2012 at 4:41 AM, Andreas Jaeger <aj@suse.com> wrote:
> mktemp always returns TEMPLATE, the caller should check TEMPLATE[0]
> instead of TEMPLATE, so do not warn about the unused result.
> Fix also the comment for mktemp
>
> Ok to commit?
> Andreas
>
> 2012-04-04  Andreas Jaeger  <aj@suse.de>
>
>        [BZ #13908]
>        * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
>        comment.

Could you explain a little bit more please?

Is there some common idiom that is used by developers which triggers a
warning when it shouldn't?

Is this with a recent GCC?

Cheers,
Carlos.



More information about the Libc-alpha mailing list