monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] gcc warnings


From: Thomas Moschny
Subject: Re: [Monotone-devel] gcc warnings
Date: Wed, 04 Mar 2009 18:29:32 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zack Weinberg wrote:
> These are a harmless false positive (it's a subclass-to-base
> conversion but gcc <4.3 doesn't know that when the warning issues,
> because it's only got a forward declaration of the subclass).

With gcc44, some more warnings about breaking strict-aliasing rules show
up (duplicates not listed):

commands.cc: In function 'commands::command_id
commands::complete_command(const args_vector&)':
commands.cc:427: warning: dereferencing type-punned pointer will break
strict-aliasing rules
commands.cc:437: warning: dereferencing type-punned pointer will break
strict-aliasing rules

hybrid_map.hh: In member function 'virtual void
commands::cmd_revert::exec(app_state&, const commands::command_id&,
const args_vector&) const':
hybrid_map.hh:167: warning: dereferencing pointer '<anonymous>' does
break strict-aliasing rules
hybrid_map.hh:167: note: initialized from here

migrate_ancestry.cc: In member function
'void<unnamed>::anc_graph::fixup_node_identities(const
parent_roster_map&, roster_t&, const legacy::rename
migrate_ancestry.cc:553: warning: dereferencing pointer '<anonymous>'
does break strict-aliasing rules
/usr/lib/gcc/x86_64-redhat-linux/4.4.0/../../../../include/c++/4.4.0/bits/stl_tree.h:259:
note: initialized from here

- - Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkmuunwACgkQm/6MhNYca5jz2QCfV+NMuteiX0dWTvZsS9UBMBxK
eCkAniPwKSnRJBnHsDqwOKm51e/tYVBm
=kZ+y
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]