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 noreturn-1 and return-type1


With one of the patches for unit-at-a-time, we moved the
line number these warnings appear at.  I'm unconcerned.


r~



Index: noreturn-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/noreturn-1.c,v
retrieving revision 1.7
diff -c -p -d -u -r1.7 noreturn-1.c
--- noreturn-1.c	3 Jun 2000 01:53:57 -0000	1.7
+++ noreturn-1.c	1 Mar 2003 00:22:52 -0000
@@ -7,8 +7,8 @@ extern void exit (int);
 extern void foo1(void) __attribute__ ((__noreturn__));
 void
 foo1(void)
-{
-} /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */
+{ /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */
+}
 
 extern void foo2(void) __attribute__ ((__noreturn__));
 void
Index: return-type-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/return-type-1.c,v
retrieving revision 1.3
diff -c -p -d -u -r1.3 return-type-1.c
--- return-type-1.c	7 Oct 2000 22:42:11 -0000	1.3
+++ return-type-1.c	1 Mar 2003 00:22:52 -0000
@@ -5,5 +5,5 @@
 /* { dg-options "-O -Wreturn-type" } */
 int
 foo(void)
-{
-} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
+{ /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
+}


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