lkml.org 
[lkml]   [2003]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] eliminate gcc warnings on assert [__builtin_expect]
From
Date
>>>>> "Randy" == Randy Dunlap <Randy.Dunlap> writes:

Randy> Building genksyms on ia64 (gcc 3.3.1) produces these
Randy> warnings:

[...]

Randy> Is there a problem with coercing the pointer parameter to
Randy> be (int)?

Doesn't this produce "warning: cast from pointer to integer of different size"?
It would be better to do something like "!!__ptr" or "__ptr != 0" to
test if the pointer is NULL. (This was discussed to death recently on LKML)

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

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.025 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site