Re: [PATCH 02/13] hrtimer: remove useless const

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

 



Hi,

On Mon, 13 Feb 2006, Andrew Morton wrote:

> const arguments to functions are pretty useful for code readability and
> maintainability too, if you use them consistently.

I could understand that argument, if gcc would warn about it in any way.
The const in function prototypes are completely useless and have no effect 
on the compiler output. Only for the local variables it seems to make a 
small difference with gcc3, but even here AFAICT only for already complex 
functions.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux