public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix gcc.dg/bf-ms-attrib.c return
@ 2008-02-26 23:55 Joseph S. Myers
  2008-02-27  0:20 ` Janis Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph S. Myers @ 2008-02-26 23:55 UTC (permalink / raw)
  To: gcc-patches

The test gcc.dg/bf-ms-attrib.c fails because of falling off the end of
main (as a C90 test, not C99 or C++, there is no implicit return 0).
This patch fixes it with an explicit return 0.  OK to commit?

2008-02-26  Joseph Myers  <joseph@codesourcery.com>

	* gcc.dg/bf-ms-attrib.c (main): Return 0.

Index: gcc.dg/bf-ms-attrib.c
===================================================================
--- gcc.dg/bf-ms-attrib.c	(revision 132664)
+++ gcc.dg/bf-ms-attrib.c	(working copy)
@@ -36,4 +36,5 @@
 	abort();
     if (sizeof(struct one_gcc) != 8)
 	abort();
+    return 0;
   }

-- 
Joseph S. Myers
joseph@codesourcery.com

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

* Re: Fix gcc.dg/bf-ms-attrib.c return
  2008-02-26 23:55 Fix gcc.dg/bf-ms-attrib.c return Joseph S. Myers
@ 2008-02-27  0:20 ` Janis Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Janis Johnson @ 2008-02-27  0:20 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: gcc-patches

On Tue, 2008-02-26 at 23:19 +0000, Joseph S. Myers wrote:
> The test gcc.dg/bf-ms-attrib.c fails because of falling off the end of
> main (as a C90 test, not C99 or C++, there is no implicit return 0).
> This patch fixes it with an explicit return 0.  OK to commit?
> 
> 2008-02-26  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* gcc.dg/bf-ms-attrib.c (main): Return 0.

OK.

Janis

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

end of thread, other threads:[~2008-02-26 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-26 23:55 Fix gcc.dg/bf-ms-attrib.c return Joseph S. Myers
2008-02-27  0:20 ` Janis Johnson

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).