| View previous topic :: View next topic |
| Author |
Message |
Binary Guest
|
Posted: Tue Oct 24, 2006 9:10 am Post subject: what does this line mean? |
|
|
Hi,
I am curious the second half of this line:
const unsigned int ctorCount = BaseClass::GetCtorCount();
(void)ctorCount;
What is the purpose of (void)ctorCount; ?
TIA.
ABAI |
|
| Back to top |
|
 |
Bo Yang Guest
|
Posted: Tue Oct 24, 2006 9:10 am Post subject: Re: what does this line mean? |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Binary :
| Quote: | Hi,
I am curious the second half of this line:
const unsigned int ctorCount = BaseClass::GetCtorCount();
(void)ctorCount;
What is the purpose of (void)ctorCount; ?
TIA.
ABAI
This line can oppress the warning of the ctorCount |
was'n used .
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFPcki7tZp58UCwyMRAtBAAKCVrkBX7CIu+1y0v9C6e+KD0c77cgCg1rAt
zFmSZLdu7RZY+mCkLcVJ4zA=
=IAkv
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
Alf P. Steinbach Guest
|
Posted: Tue Oct 24, 2006 9:10 am Post subject: Re: what does this line mean? |
|
|
* Binary:
| Quote: | Hi,
I am curious the second half of this line:
const unsigned int ctorCount = BaseClass::GetCtorCount();
(void)ctorCount;
What is the purpose of (void)ctorCount; ?
|
It has no purpose except possibly in the programmer's imagination.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? |
|
| Back to top |
|
 |
|