Re: [BUG] compiler warning, kernel 2.6.16
From: Andrew Morton
Date: Tue Mar 21 2006 - 17:37:38 EST
Knut Petersen <Knut_Petersen@xxxxxxxxxxx> wrote:
>
> If CONFIG_SWAP is _not_ set, gcc complains:
>
> /src/linux-2.6.16-tfix/mm/vmscan.c: In function `remove_mapping':
> /src/linux-2.6.16-tfix/mm/vmscan.c:398: warning: unused variable `swap'
>
Yes, that's been there for ages. That code will be eliminated by the
compiler and I tend to think that the ugliness of making the warning go
away exceeds the benefit of stomping a !CONFIG_SWAP compile warning.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/