Re: -Werror in test3-pre2

H. Peter Anvin (hpa@zytor.com)
30 Jun 2000 11:25:45 -0700


Followup to: <Pine.LNX.4.21.0006301141140.353-100000@neper.ethz.ch>
By author: Giacomo Catenazzi <cate@neper.ethz.ch>
In newsgroup: linux.dev.kernel
>
> Another usefull compiler flag to add is: '-Winline'
> It warns if a inline function cannot be inlined. With this option and with
> -Werror we can eliminate all 'static inline' and 'extern inline'. And
> developers are sure that inline are really inlined.
>

Hardly so!

If you don't make it either "static" or "extern", each module will
contain a non-inline copy of the code for external callers!

However, under -Winline -Werror, "static inline" and "extern inline"
should be equivalent (although I personally prefer "extern inline".)

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/