Linked by Amjith Ramanujam on Fri 21st Nov 2008 03:38 UTC
General Development The Linux kernel uses several special capabilities of the GNU Compiler Collection (GCC) suite. These capabilities range from giving you shortcuts and simplifications to providing the compiler with hints for optimization. Discover some of these special GCC features and learn how to use them in the Linux kernel.
Permalink for comment 337969
To read all comments associated with this story, please click here.
RE: Comment by Yamin
by irasnyd on Fri 21st Nov 2008 05:34 UTC in reply to "Comment by Yamin"
irasnyd
Member since:
2005-07-06

It has to do with typechecking.

Making a simple program:
int x = 10;
long y = 20;
long r = min(x, y);

Gives the following warning:
warning: comparison of distinct pointer types lacks a cast

Reply Parent Bookmark Score: 3