[J. A. Magallon]
> I know Linux will never be compiled with any other thing than
> gcc. But what I do not understand is why if there is a standard C way
> of doing something you have to use an strange extension of gcc.
__attribute__((noreturn)) may do other things besides suppress the "no
return
On 01.25 Peter Samuelson wrote:
>
> [J. A. Magallon]
> > It is harmless, 'cause the last sentence in the funtion is a panic,
> > but it is good to add the 'return 0', just to shut up the compiler.
>
> The correct fix is __attribute__((noreturn)) in the panic() prototype.
> As it happens, this h
[J. A. Magallon]
> It is harmless, 'cause the last sentence in the funtion is a panic,
> but it is good to add the 'return 0', just to shut up the compiler.
The correct fix is __attribute__((noreturn)) in the panic() prototype.
As it happens, this has already been done
Peter
--- 2.3.99pre4
In file included from /usr/src/linux/include/linux/raid/md.h:51,
from init/main.c:25:
/usr/src/linux/include/linux/raid/md_k.h: In function `pers_to_level':
/usr/src/linux/include/linux/raid/md_k.h:39: warning: control reaches end of
non-void function
It is harmless, 'cause the l
4 matches
Mail list logo