Re: [PATCH blktests] nbd/003: fix compiling error with gcc version 4.8.5

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

 



On Thu, Feb 20, 2020 at 10:46:49PM +0800, Yi Zhang wrote:
> cc  -O2 -Wall -Wshadow   -o mount_clear_sock mount_clear_sock.c
> mount_clear_sock.c: In function ‘main’:
> mount_clear_sock.c:39:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
>   for (int i = 0; i < loops; i++) {
>   ^
> mount_clear_sock.c:39:2: note: use option -std=c99 or -std=gnu99 to compile your code
> 
> Signed-off-by: Yi Zhang <yi.zhang@xxxxxxxxxx>

Thanks, applied.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux