Skip to contentSkip to conversation

mdadm 3.2.1 doesn't compile with gcc 4.6.0

DISCUSSION Tobias Powalowski 2 participants 2 messages Apr 26, 2011 – Apr 27, 2011 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi guys,
mdadm.c:106:6: error: variable 'auto_update_home' set but not used [- Werror=unused-but-set-variable]

any help would be much appreciated.
thanks
greetings
tpowa

Signature · 4 lines
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
http://www.archlinux.org
[email protected]
#1 lore raw
Quoted 9 lines · On Tue, 26 Apr 2011 09:00:17 +0200 Tobias Powalowski <[email protected]> wrote:

Hi guys,
mdadm.c:106:6: error: variable 'auto_update_home' set but not used [- Werror=unused-but-set-variable]

any help would be much appreciated.
thanks
greetings
tpowa

Thanks for the report.

If you build with
make CWFLAGS=

it will not treat warnings as errors and it should successfully compile.

I have committed a fix:

http://neil.brown.name/git?p=mdadm;a=commitdiff;h=7e90264df5060cd308ce56206ec7dfa29e2aa041

Thanks,
NeilBrown