From: Bill Currie <bcurrie@tssc.co.nz>
To: egcs@cygnus.com
Subject: `strange warning'
Date: Mon, 29 Jun 1998 23:17:00 -0000 [thread overview]
Message-ID: <35988242.5508@tssc.co.nz> (raw)
In a project I'm working on, I get the following warning message (names
changed to protect the innocent:):
warning: `class foo * this' might be used uninitialized in this function
I actually get several, somewhere after the case statement that
initializes the foo *, but I can't figure out how to fix this as I have
never seen uninitialed this * warnings before using egcs (this is from a
recent build via the CVS tree).
Is this a bug in the compiler, or am I missing something important (eg
exceptions, gcc checking whether data members are initialized, something
else weird)?
I got this message another time when I found some code as follows:
ostrstream SS;
SS << "0x" << iLine<< ": ";
But I fixed it by using ostrstream correctly (ie ostrstream
SS(string,size); )
An explanation of the mechanisms involved in this particular instance of
this warning would be greatly appreciated (I have no problems with
uninitialized local variables:).
Bill
--
Leave others their otherness
reply other threads:[~1998-06-29 23:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=35988242.5508@tssc.co.nz \
--to=bcurrie@tssc.co.nz \
--cc=egcs@cygnus.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).