lkml.org 
[lkml]   [2005]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 15/17] s390: convert /proc/cio_ignore.
Cornelia Huck <cornelia.huck@gmail.com> wrote:
>
> > Unneeded (and undesirable) cast of void*.
>
> Some people seem to prefer explicit casts to make the
> type more clear. Is there any concensus on this? (I don't care
> either way ;))

It's better to omit the casts because

a) they're ugly and

b) If someone changes the type of the RHS from void* to anything else,
we'll get a warning, probably leading us to a bug. The cast would have
prevented that warning. IOW, omitting the cast is more type-safe.
-
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-12-10 10:40    [W:0.024 / U:1.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site