[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (Re)Build problem with g++ 4.0

I demand that Brian M. Carlson may or may not have written...

> On Thu, 2005-07-07 at 23:57 +0200, Juergen Salk wrote:
>> void *thread_func(void *arg) {
>>     sleep(3);
>>     pthread_exit(0);

> You are also neglecting to return a value here.  You must always return a
> value in a non-void function.

Not in this case: pthread_exit has the "noreturn" attribute, so gcc/g++ won't

| Darren Salt   | linux (or ds) at | nr. Ashington,
| sarge,        | youmustbejoking  | Northumberland
| RISC OS       | demon co uk      | Toon Army
|   Let's keep the pound sterling

Is tomorrow *ever* going to arrive?

Reply to: