]> www.infradead.org Git - users/sagi/blktests.git/commit
nbd/003: fix compiling error with gcc version 4.8.5
authorYi Zhang <yi.zhang@redhat.com>
Thu, 20 Feb 2020 14:46:49 +0000 (22:46 +0800)
committerOmar Sandoval <osandov@fb.com>
Wed, 4 Mar 2020 18:15:13 +0000 (10:15 -0800)
commit5b2d6eeb1ef02d645ea44d95c9562e41e545e510
tree036c691c42506051f0d44d5dfd556e8438ed913d
parentf7b47c58e87caf91e1648b3c0fa348c555595800
nbd/003: fix compiling error with gcc version 4.8.5

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@redhat.com>
src/mount_clear_sock.c