public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-6626] Fix test warnings.
Date: Mon, 17 Jan 2022 10:03:50 +0000 (GMT)	[thread overview]
Message-ID: <20220117100350.D112A3858010@sourceware.org> (raw)

https://gcc.gnu.org/g:d4c02ec777943c88378c1357d9cd6cfb0433c1bc

commit r12-6626-gd4c02ec777943c88378c1357d9cd6cfb0433c1bc
Author: Martin Liska <mliska@suse.cz>
Date:   Mon Jan 17 10:55:32 2022 +0100

    Fix test warnings.
    
            PR testsuite/104035
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/torture/pr57993-2.C: Fix warnings.

Diff:
---
 gcc/testsuite/g++.dg/torture/pr57993-2.C | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/gcc/testsuite/g++.dg/torture/pr57993-2.C b/gcc/testsuite/g++.dg/torture/pr57993-2.C
index b7bffa89e41..529b5a9e59d 100644
--- a/gcc/testsuite/g++.dg/torture/pr57993-2.C
+++ b/gcc/testsuite/g++.dg/torture/pr57993-2.C
@@ -1,5 +1,7 @@
 /* This ICEd due to an incomplete fix for PR57993.  */
 /* { dg-do compile } */
+/* { dg-additional-options "-Wno-return-type" } */
+
 
 extern "C"
 {
@@ -118,21 +120,21 @@ extern "C"
   Stats;
   static int All_Bicubic_Patch_Intersections (OBJECT * Object, RAY * Ray,
 					      ISTACK * Depth_Stack);
-  static int Inside_Bicubic_Patch (VECTOR IPoint, OBJECT * Object);
+  static int Inside_Bicubic_Patch (VECTOR IPoint, OBJECT * Object) { return 0; }
   static void Bicubic_Patch_Normal (VECTOR Result, OBJECT * Object,
-				    INTERSECTION * Inter);
+				    INTERSECTION * Inter) {}
   static void Bicubic_Patch_UVCoord (UV_VECT Result, OBJECT * Object,
-				     INTERSECTION * Inter);
-  static BICUBIC_PATCH *Copy_Bicubic_Patch (OBJECT * Object);
+				     INTERSECTION * Inter) {}
+  static BICUBIC_PATCH *Copy_Bicubic_Patch (OBJECT * Object) { return 0; }
   static void Translate_Bicubic_Patch (OBJECT * Object, VECTOR Vector,
-				       TRANSFORM * Trans);
+				       TRANSFORM * Trans) {}
   static void Rotate_Bicubic_Patch (OBJECT * Object, VECTOR Vector,
-				    TRANSFORM * Trans);
+				    TRANSFORM * Trans) {}
   static void Scale_Bicubic_Patch (OBJECT * Object, VECTOR Vector,
-				   TRANSFORM * Trans);
-  static void Transform_Bicubic_Patch (OBJECT * Object, TRANSFORM * Trans);
-  static void Invert_Bicubic_Patch (OBJECT * Object);
-  static void Destroy_Bicubic_Patch (OBJECT * Object);
+				   TRANSFORM * Trans) {}
+  static void Transform_Bicubic_Patch (OBJECT * Object, TRANSFORM * Trans) {}
+  static void Invert_Bicubic_Patch (OBJECT * Object) {}
+  static void Destroy_Bicubic_Patch (OBJECT * Object) {}
   static METHODS Bicubic_Patch_Methods = {
     All_Bicubic_Patch_Intersections, Inside_Bicubic_Patch,
       Bicubic_Patch_Normal, Bicubic_Patch_UVCoord,


                 reply	other threads:[~2022-01-17 10:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220117100350.D112A3858010@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).