error build mdadm with gcc12

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

 



Hi.
Can not build mdadm with gcc12 and -Werror

mdadm.c: In function 'scan_assemble':
mdadm.c:1815:47: error: the comparison will always evaluate as 'true'
for the address of 'devnm' will never be NULL [-Werror=address]
 1815 |                                 if (e->active && e->devnm &&
      |                                               ^~
In file included from mdadm.c:28:
mdadm.h:622:25: note: 'devnm' declared here
  622 |         char            devnm[32];
      |                         ^~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:193: mdadm.o] Error 1

-- 
Alexey Shabalin



[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