public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Try/catch in egcs
@ 1997-12-04 12:48 Matthias Hoelzl (tc)
  1997-12-05 23:36 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Hoelzl (tc) @ 1997-12-04 12:48 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Try/catch in egcs
  1997-12-04 12:48 Try/catch in egcs Matthias Hoelzl (tc)
@ 1997-12-05 23:36 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-12-05 23:36 UTC (permalink / raw)
  To: Matthias Hoelzl (tc); +Cc: egcs

  In message < 8790u095ko.fsf@gauss.muc.de >you write:
  > 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.
Thanks.  I've installed this patch.

In the future, please make sure to include a ChangeLog entry when
you send patches.

Thanks.
jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-05 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-04 12:48 Try/catch in egcs Matthias Hoelzl (tc)
1997-12-05 23:36 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).