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

Zack Weinberg wrote:
> On Wed, Mar 4, 2009 at 10:29 AM, Thomas Moschny <[email protected]> wrote:
>> Zack Weinberg wrote:
>>> I don't have gcc4.4 to hand, but do you get the same diagnostic with
>>> this test case?
>>>
>>> #include <map>
>>> typedef std::map<unsigned int, unsigned long> M;
>>>
>>> bool test(M const & m, unsigned int k, unsigned long v)
>>> {
>>>  M::const_iterator i = m.find(k);
>>>  if (i == m.end()) return false;
>>>  return (i->second == v);
>>> }
>> No warning with that test case.
> 
> What compiler flags did you use?  You need at least -O2 -Wall I think...

- -Wall -W -O2 -g

- - Thomas


PS: For the record - note that this is with a gcc rpm from fedora devel,
not a "released" one.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkmuzL0ACgkQm/6MhNYca5j8UgCeNgSZyPzE8EfO0zXaD2hWhalO
IgwAnA5wTW2NuP2N4b6wDf96+Zs5WWLt
=uLKv
-----END PGP SIGNATURE-----


_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to