From: christof@warlich.name (Christof Warlich)
To: cocci@systeme.lip6.fr
Subject: [Cocci] adding function declarations
Date: Fri, 02 Jan 2015 09:23:27 +0100 [thread overview]
Message-ID: <54A6557F.8030901@warlich.name> (raw)
In-Reply-To: <alpine.DEB.2.02.1501020704450.2072@localhost6.localdomain6>
> Shouldn't the static also be in the definition? julia
As much as g++ is concerned, the static may or may not be part of the
definition: At least the following
$ cat xxx.cc
static inline int f();
int f(void) {
return 0;
}
compiles fine with
$ g++ -c -Wall -Wextra -Weffc++ -Wpedantic xxx.cc
next prev parent reply other threads:[~2015-01-02 8:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 14:43 [Cocci] adding function declarations Christof Warlich
2015-01-01 16:02 ` Julia Lawall
2015-01-01 19:06 ` Christof Warlich
2015-01-01 19:54 ` Julia Lawall
2015-01-01 23:50 ` Christof Warlich
2015-01-02 6:05 ` Julia Lawall
2015-01-02 8:23 ` Christof Warlich [this message]
2015-01-01 17:33 ` Julia Lawall
2015-01-02 10:22 ` Christof Warlich
2015-01-02 10:30 ` Julia Lawall
2015-01-02 11:11 ` Christof Warlich
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=54A6557F.8030901@warlich.name \
--to=christof@warlich.name \
--cc=cocci@systeme.lip6.fr \
/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.