Signed-off-by: Pavel Roskin <proski@xxxxxxx> --- validation/bitfields.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/validation/bitfields.c b/validation/bitfields.c index 292a110..16aa16d 100644 --- a/validation/bitfields.c +++ b/validation/bitfields.c @@ -5,13 +5,13 @@ * * "warning: a.c:16:10: incompatible types for operation" */ -struct { +static struct { int x:4; } y; extern int a[]; -int b(void) +static int b(void) { return a[y.x]; } - To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html