This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36833] unexpected warning: guard 13936 owner may be used uninitialized in this function
- From: "gcc at dpinol dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2008 06:33:36 -0000
- Subject: [Bug c++/36833] unexpected warning: guard 13936 owner may be used uninitialized in this function
- References: <bug-36833-16437@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from gcc at dpinol dot com 2008-08-11 06:33 -------
(In reply to comment #2)
> This warning is valid as far as I can tell as the compiler does not know
> ACE_OS::mutex_lock does not throw.
>
Hi,
then why removing any of these 3 lines from CircularBuffer's constructor causes
the warning to disappear?
c_pBufferStart( new int[ 10 ]),
c_pBufferEnd( c_pBufferStart+10),
m_pRead( (int*)c_pBufferStart ),
thanks
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36833