Re: [PATCH] Use NULL for pointer

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

 



On Fri, 13 Jul 2007 01:50:07 +0200 (CEST), post@xxxxxxxx wrote:
> Please excuse me, i couldn't restrain myself from commenting on this.
> It's a pity, that a weird warning (which gcc version with what settings
> did produce it ?) urges one to (re-)introduce this obsolescent macro.

The warning is produced by sparse, not gcc.

http://www.kernel.org/pub/software/devel/sparse/

I know C++ dislike NULL, but it seems kernel developpers like NULL for
a null pointer.  There is another way to convert a pointer to a bool:

		action = board_be_handler(regs, !!fixup);

It might satisfy both people, but might surprise other people a bit :)

---
Atsushi Nemoto


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux