From: Tim W. <tw...@re...> - 2005-10-03 12:17:06
|
Hi, This warning: io/hpiod/uppdevice.cpp:192: warning: 'mode' is used uninitialized in this function corresponds to this function: Channel *UniParDevice::NewChannel(unsigned char sockid) { Channel *pC=3DNULL; int i, mode; /* Only support one channel. */ if (ChannelCnt >=3D 1) goto bugout; /* Look for unused slot in channel array. Note, slot 0 is unused. */ for (i=3D1; i<MAX_CHANNEL; i++) { if (pChannel[i] =3D=3D NULL) { pC =3D new RawChannel(this); /* constructor sets ClientCnt=3D1 */ pC->SetIndex(i); pC->SetSocketID(sockid); pChannel[i] =3D pC; ChannelCnt++; ChannelMode =3D mode; break; } } =20 bugout: return pC; } As you can see, 'mode' is indeed never initialised. What is meant to happen here? Tim. */ |