delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/15/11:55:44

From: "Seyil Yoon" <wings AT interlog DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Exceptions in v2.02
Date: Fri, 15 Jan 1999 11:51:11 -0500
Organization: Data Recovery Labs
Lines: 34
Message-ID: <77nrlj$cop$1@nntp3.uunet.ca>
NNTP-Posting-Host: 209.47.85.27
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Here's the code snippet:

try
{
    // Some code.
}
catch(CException Exception)
{
    // Do some stuff with Exception.
}

CException is a class which I've written.

When I compile with "-Wall -W -O", I get the message
"Warning: value computed is not used", referencing the
line with the catch statement. The program itself runs
fine, but I would like to know if there is either something
wrong with the code or perhaps if this is a bug
(or perhaps the compiler is just being rather anal).

Is this something that depends on the internal structure
of CException (I would guess not)?

Any help would be appreciated. Thanks in advance.

--
============================================================================
=
Seyil Yoon                              wings AT interlog DOT com
Research Programmer, Data Recovery Labs http://www.datarec.com
Level III certified judge
http://www.wizards.com/DCI/Magic.html


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019