lkml.org 
[lkml]   [2006]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2006-03-21 23:40    [W:0.029 / U:3.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site