Re: [PATCH] src/t_enospc.c: Fix an error for the loop initialization declaration

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





On 12/10/20 8:29 AM, Feiyu Zhu wrote:
When I compiled xfstests using the gcc(version 4.8.5), the following error occurred:
t_enospc.c: In function 'enospc_test':
t_enospc.c:88:2: error: 'for' loop initial declarations are only allowed in C99 mode
   for (int i = 0; i < size; i++) {
   ^

Signed-off-by: Feiyu Zhu <zhufy.jy@xxxxxxxxxxxxxx>

Thanks for your patch. LGTM, please feel free to add.

Reviewed-by: Ritesh Harjani <riteshh@xxxxxxxxxxxxx>



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux