Skip to contentSkip to conversation

compiler warning, kernel 2.6.16

BUG Knut Petersen 2 participants 2 messages Mar 21, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Knut Petersen

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.