This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: Add more noreturn attributes


Andreas Jaeger <aj@suse.de> writes:

> The appended patch silences most of the "function might be possible
> candidate for attribute `noreturn'" warnings from GCC.

OK.

> I've got one question about thread_func in
> linuxthreads/sysdeps/pthread/timer_routines.c which has a while (1)
> loop.  Can it ever return?  gcc issues the noreturn warning.

I cannot return.  And the unlock call can go therefore.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


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