linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Morten Welinder <mortenw@gnome.org>
To: linux-sparse@vger.kernel.org
Subject: Spurious symbol 'foo' was not declared
Date: Sun, 18 Jul 2010 16:16:37 -0400	[thread overview]
Message-ID: <AANLkTikqtMvb3fdg4aKR1KStEBhg1yDM-0YpR0VGHtiT@mail.gmail.com> (raw)

I think sparse issues a spurious warning about "static" for this program.
Right?

Morten

static void foo (int);
void foo (int a) { }

welinder@anemone:~> cgcc -Wall -c sss.c
sss.c:2:6: warning: symbol 'foo' was not declared. Should it be static?
sss.c:2: warning: ‘foo’ defined but not used
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2010-07-18 20:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-18 20:16 Morten Welinder [this message]
2010-07-18 20:35 ` Spurious symbol 'foo' was not declared Josh Triplett

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=AANLkTikqtMvb3fdg4aKR1KStEBhg1yDM-0YpR0VGHtiT@mail.gmail.com \
    --to=mortenw@gnome.org \
    --cc=linux-sparse@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;
as well as URLs for NNTP newsgroup(s).