mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] checkpatch: Add check for sscanf without return use
Date: Mon, 7 Oct 2013 16:56:26 -0700	[thread overview]
Message-ID: <20131007165626.be437f74a4ba39e2be21af55@linux-foundation.org> (raw)
In-Reply-To: <1381189523.2081.225.camel@joe-AO722>

On Mon, 07 Oct 2013 16:45:23 -0700 Joe Perches <joe@perches.com> wrote:

> Naked use sscanf can be troublesome.

It would be helpful to expand on "troublesome"?

> Add a warning when the sscanf return value is not used.

Maybe it should be __must_check?



  reply	other threads:[~2013-10-07 23:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 23:45 Joe Perches
2013-10-07 23:56 ` Andrew Morton [this message]
2013-10-08  0:03   ` Joe Perches
2013-10-08  0:10     ` Bjorn Helgaas
2013-10-08  0:29       ` Joe Perches
2013-10-08  0:37         ` Geyslan Gregório Bem

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=20131007165626.be437f74a4ba39e2be21af55@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®