From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Subject: Re: ANNOUNCE: mdadm 2.6.2 - A tool for managing Soft RAID under Linux Date: Wed, 30 May 2007 06:49:40 +1000 Message-ID: <18012.37348.161496.473678@notabene.brown> References: <18001.9765.808761.531809@notabene.brown> <200705291829.54274.thomas.jarosch@intra2net.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: message from Thomas Jarosch on Tuesday May 29 Sender: linux-raid-owner@vger.kernel.org To: Thomas Jarosch Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids On Tuesday May 29, thomas.jarosch@intra2net.com wrote: > Hello Neil, > > On Monday, 21. May 2007, you wrote: > > I am pleased to announce the availability of > > mdadm version 2.6.2 > > Thanks for releasing mdadm 2.6.2. It contains a fix for "--test" > I was looking for right at the moment :-) > > mdadm fails to compile if you enable "-O2" using gcc 4.1.1 because of -Werror: > > cc1: warnings being treated as errors > sysfs.c: In function 'sysfs_read': > sysfs.c:97: warning: value computed is not used > sysfs.c:119: warning: value computed is not used > sysfs.c:127: warning: value computed is not used > sysfs.c:133: warning: value computed is not used > sysfs.c:139: warning: value computed is not used > sysfs.c:178: warning: value computed is not used Those are bogus warnings. Each is strcpy(base, "xxxxx"); and base most certainly is used., though I can see how gcc might not notice if it is being too clever. Maybe you need to get gcc-4.1.2? or make CWFLAGS=-Wall Thanks for the report. NeilBrown