This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Try/catch in egcs
- To: egcs at cygnus dot com
- Subject: Try/catch in egcs
- From: tc at gauss dot muc dot de (Matthias Hoelzl (tc))
- Date: Thu, 4 Dec 1997 22:11:35 +0100
When -Wunused is enabled egcs-2.90.20 971201 (Linux 2.0.30, i68 glibc
2.0.5) gives a warning
warning: value computed is not used
for every try/catch block in the program. This doesn't seem to be the
wanted behavior and can be fixed by the following trivial diff.
Matthias
*** gcc/stmt.c Tue Dec 2 18:26:57 1997
--- gcc/stmt.c Thu Dec 4 18:18:02 1997
***************
*** 1873,1878 ****
--- 1873,1879 ----
case CALL_EXPR:
case METHOD_CALL_EXPR:
case RTL_EXPR:
+ case TRY_CATCH_EXPR:
case WITH_CLEANUP_EXPR:
case EXIT_EXPR:
/* We don't warn about COND_EXPR because it may be a useful