This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BZ #13908 Fix mktemp attribute and comment


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]