This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: BZ #13908 Fix mktemp attribute and comment
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Andreas Jaeger <aj at suse dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 4 Apr 2012 11:58:59 -0400
- Subject: Re: BZ #13908 Fix mktemp attribute and comment
- References: <201204041041.55421.aj@suse.com>
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.