From: Jens Axboe <jens.axboe@oracle.com>
To: Gabriel C <nix.or.die@googlemail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: block/cfq-iosched.c - control reaches end of non-void function warning
Date: Tue, 7 Aug 2007 08:46:42 +0200 [thread overview]
Message-ID: <20070807064640.GP5245@kernel.dk> (raw)
In-Reply-To: <46B78758.8090101@googlemail.com>
On Mon, Aug 06 2007, Gabriel C wrote:
> Hi Jens,
>
> I just noticed this warning in one of my build logs :
>
> ...
>
> block/cfq-iosched.c: In function 'cfq_async_queue_prio':
> block/cfq-iosched.c:1430: warning: control reaches end of non-void function
>
> ...
>
> Guessing return 0; is missing there.
The default: case ends up in a BUG(), which does not return.
--
Jens Axboe
prev parent reply other threads:[~2007-08-07 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 20:40 block/cfq-iosched.c - control reaches end of non-void function warning Gabriel C
2007-08-07 6:46 ` Jens Axboe [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=20070807064640.GP5245@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nix.or.die@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.