From: Matt Benjamin <mbenjamin@redhat.com>
To: Ceph Development <ceph-devel@vger.kernel.org>
Subject: c++ build flags, clang++, -Wnomismatched-tags?
Date: Wed, 20 Jan 2016 17:39:59 -0500 (EST) [thread overview]
Message-ID: <1295550971.21353553.1453329599755.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1853622377.21349293.1453329346090.JavaMail.zimbra@redhat.com>
Hi Ceph C++ devs,
I notice building with clang lots of warnings like:
'SequencerPosition' defined as a struct here but previously declared as a
class [-Wmismatched-tags]
struct SequencerPosition {
^
/home/mbenjamin/dev/rgw/ceph-upstream/src/os/ObjectMap.h:24:1: note: did you
mean struct here?
class SequencerPosition;
^~~~~
struct
3 warnings generated.
induced by -Wmismatched-tags, which apparently clang++ has by default. As a ISO C++ developer, I don't think of "struct" as a token that can be mismatched with "class" in friend or forward declaration, but clearly the authors of this warning do.
I think my intuition would be to disable this warning. What do others think?
Matt
--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103
http://www.redhat.com/en/technologies/storage
tel. 734-707-0660
fax. 734-769-8938
cel. 734-216-5309
next parent reply other threads:[~2016-01-20 22:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1853622377.21349293.1453329346090.JavaMail.zimbra@redhat.com>
2016-01-20 22:39 ` Matt Benjamin [this message]
2016-01-20 22:57 ` c++ build flags, clang++, -Wnomismatched-tags? Sage Weil
2016-01-20 23:07 ` Matt Benjamin
2016-01-20 23:49 ` Gregory Farnum
2016-01-21 11:18 ` Ilya Dryomov
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=1295550971.21353553.1453329599755.JavaMail.zimbra@redhat.com \
--to=mbenjamin@redhat.com \
--cc=ceph-devel@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 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.