linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm 3.2.1 doesn't compile with gcc 4.6.0
@ 2011-04-26  7:00 Tobias Powalowski
  2011-04-27  0:00 ` NeilBrown
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Powalowski @ 2011-04-26  7:00 UTC (permalink / raw)
  To: linux-raid, neilb

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

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
-- 
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
http://www.archlinux.org
tpowa@archlinux.org

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: mdadm 3.2.1 doesn't compile with gcc 4.6.0
@ 2011-04-26 16:12 Mike Viau
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Viau @ 2011-04-26 16:12 UTC (permalink / raw)
  To: linux-raid


> On Tue, 26 Apr 2011 09:00:17 +0200  wrote:
>
> Hi guys,
> mdadm.c:106:6: error: variable 'auto_update_home' set but not used [-
> Werror=unused-but-set-variable]
>

I have not grepped the source code for other instances of 'auto_update_home' so it may or may not actually be used.

If its not ever used you can try commenting out the declaration of 'auto_update_home' and then re-compile?

Lastly, you could drop the -Werror=unused-but-set-variable option, as it is turning the warning (which may happen and still compile) into an error (which when happens, will not compile).



-M
 		 	   		  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mdadm 3.2.1 doesn't compile with gcc 4.6.0
  2011-04-26  7:00 mdadm 3.2.1 doesn't compile with gcc 4.6.0 Tobias Powalowski
@ 2011-04-27  0:00 ` NeilBrown
  0 siblings, 0 replies; 3+ messages in thread
From: NeilBrown @ 2011-04-27  0:00 UTC (permalink / raw)
  To: Tobias Powalowski; +Cc: linux-raid

On Tue, 26 Apr 2011 09:00:17 +0200 Tobias Powalowski <t.powa@gmx.de> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-27  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26  7:00 mdadm 3.2.1 doesn't compile with gcc 4.6.0 Tobias Powalowski
2011-04-27  0:00 ` NeilBrown
  -- strict thread matches above, loose matches on Subject: below --
2011-04-26 16:12 Mike Viau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).