mdadm 3.2.1 doesn"t compile with gcc 4.6.0

mdadm 3.2.1 doesn"t compile with gcc 4.6.0

am 26.04.2011 09:00:17 von Tobias Powalowski

--nextPart2127035.D4yJT9B19a
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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


any help would be much appreciated.
thanks
greetings
tpowa
=2D-=20
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
http://www.archlinux.org
tpowa@archlinux.org

--nextPart2127035.D4yJT9B19a
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk22bYEACgkQ81yYyRqLOvj/mQCeLSW5G6ICJV8fGX/OKG5I 646J
GAIAn0IUHAcXlCs4TXVoiBF7ZaQiSXjv
=zmZi
-----END PGP SIGNATURE-----

--nextPart2127035.D4yJT9B19a--
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: mdadm 3.2.1 doesn"t compile with gcc 4.6.0

am 26.04.2011 18:12:22 von Mike Viau

> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: mdadm 3.2.1 doesn"t compile with gcc 4.6.0

am 27.04.2011 02:00:27 von NeilBrown

On Tue, 26 Apr 2011 09:00:17 +0200 Tobias Powalowski 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=7e90264df5 060cd308ce56206ec7dfa29e2aa041

Thanks,
NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html