Messages in this thread | | | Date | Tue, 21 Mar 2006 14:38:30 -0800 | From | Andrew Morton <> | Subject | Re: [BUG] compiler warning, kernel 2.6.16 |
| |
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. - 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/
| |