public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Omar Sandoval <osandov@osandov.com>
To: Yi Zhang <yi.zhang@redhat.com>
Cc: linux-block@vger.kernel.org, sunke32@huawei.com
Subject: Re: [PATCH blktests] nbd/003: fix compiling error with gcc version 4.8.5
Date: Wed, 4 Mar 2020 10:17:07 -0800	[thread overview]
Message-ID: <20200304181707.GB271003@vader> (raw)
In-Reply-To: <20200220144649.16881-1-yi.zhang@redhat.com>

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@redhat.com>

Thanks, applied.

      reply	other threads:[~2020-03-04 18:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 14:46 [PATCH blktests] nbd/003: fix compiling error with gcc version 4.8.5 Yi Zhang
2020-03-04 18:17 ` Omar Sandoval [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200304181707.GB271003@vader \
    --to=osandov@osandov.com \
    --cc=linux-block@vger.kernel.org \
    --cc=sunke32@huawei.com \
    --cc=yi.zhang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox