[lkml]   [2003]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] use size_t for the broken ioctl numbers

On Sun, 7 Sep 2003, Andreas Schwab wrote:
> Here is a patch that enforces the use of types in the third argument. It
> requires gcc >= 3.1 for the check to work, I couldn't find a method for
> previous versions.

Ehh, what's wrong with the obvious approach: declare a dummy variable. If
it's not a type, then the declaration won't work.

Ie, change the (sizeof(x)) to something like

({ x __dummy; sizeof(__dummy); })

which should work with all compiler versions.

Anything that requires a new compiler is always a big dodgy as a sanity
check. People who don't have the new compiler won't be testing it, so
they'll just continually break it for people who _do_. Aggravation


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2009-11-18 23:46    [W:0.629 / U:1.272 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site