Re: ANNOUNCE: mdadm 2.6.2 - A tool for managing Soft RAID under Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux