* [BUG] compiler warning, kernel 2.6.16
@ 2006-03-21 13:39 Knut Petersen
2006-03-21 22:38 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Knut Petersen @ 2006-03-21 13:39 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
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'
cu,
knut
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] compiler warning, kernel 2.6.16
2006-03-21 13:39 [BUG] compiler warning, kernel 2.6.16 Knut Petersen
@ 2006-03-21 22:38 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-03-21 22:38 UTC (permalink / raw)
To: Knut Petersen; +Cc: linux-kernel
Knut Petersen <Knut_Petersen@t-online.de> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-21 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 13:39 [BUG] compiler warning, kernel 2.6.16 Knut Petersen
2006-03-21 22:38 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox