Re: [BUG] compiler warning, kernel 2.6.16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Knut Petersen <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux