public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* unitialised error
@ 2004-07-01 12:05 Ken Foskey
  2004-07-01 16:22 ` llewelly
  2004-07-01 20:48 ` Falk Hueffner
  0 siblings, 2 replies; 6+ messages in thread
From: Ken Foskey @ 2004-07-01 12:05 UTC (permalink / raw)
  To: gcc help


The following code gives me an uninitialised warning on nCol.  There is
no possible default clause for this one.

switch( nXIndex & 3 )
{
	case 0 :
		nCol = *pTmp >> 6;
		break;
	case 1 :
		nCol = ( *pTmp >> 4 ) & 0x03 ;
		break;

	case 2 :
		nCol = ( *pTmp >> 2 ) & 0x03;
		break;
	case 3 :
		nCol = ( *pTmp++ ) & 0x03;
		break;
}


-- 
Thanks
KenF
OpenOffice.org developer

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-02 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 12:05 unitialised error Ken Foskey
2004-07-01 16:22 ` llewelly
2004-07-01 20:48 ` Falk Hueffner
2004-07-02  5:35   ` llewelly
2004-07-02  8:03     ` Ken Foskey
2004-07-02 13:45       ` llewelly

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).