Try/catch in egcs
Matthias Hoelzl tc
tc@gauss.muc.de
Thu Dec 4 12:48:00 GMT 1997
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
More information about the Gcc
mailing list