This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Try/catch in egcs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]