This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Fix gcc.dg/bf-ms-attrib.c return


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


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