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 -Wreturn-type fallout in c-c++-common/torture/aarch64-vect-lane-2.c


Installed as obvious.

Andreas.

	* c-c++-common/torture/aarch64-vect-lane-2.c (search_line_fast):
	Change type to void.

---
 gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c b/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c
index 745c434b06..a2d9e45c21 100644
--- a/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c
+++ b/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c
@@ -1,6 +1,6 @@
 // { dg-do compile { target "aarch64*-*-*" } }
 // { dg-xfail-if "" { *-*-* } { "-flto -fuse-linker-plugin" } { "" } }
-int
+void
 search_line_fast (void)
 {
   __builtin_aarch64_im_lane_boundsi (4, 0, 0); /* { dg-error "" } */
-- 
2.15.0

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


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