Article View: comp.std.c++
Article #1599problem with assertions
From: STIOO
Date: Fri, 04 Aug 1995 19:53
Date: Fri, 04 Aug 1995 19:53
17 lines
708 bytes
708 bytes
...
BOOL
bSuccess = bTrySomething();
assert(bSuccess); // I kwnow it must be a success.
...
When I remove the assert statement (undefining a keyword) I get
a compiler warning: "bSuccess declared but not used".
Is there another writing style that avoids such a message?
Louis Lecomte
stioo project.
Technical Details
Message-ID:
<3vttrm$nc2@athena.ulaval.ca>Path:
arc1-ca.pugleaf.net!athena.ulaval.ca!mozart!stiooShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!athena.ulaval.ca!mozart!stioo From: stioo@ift.ulaval.ca (STIOO) Newsgroups: comp.std.c++ Subject: problem with assertions Date: 4 Aug 1995 19:53:26 GMT Organization: Universite Laval, Quebec, Canada Distribution: world Message-ID: <3vttrm$nc2@athena.ulaval.ca> Reply-To: stioo@ift.ulaval.ca NNTP-Posting-Host: mozart.ift.ulaval.ca