public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][pushed] Fix test warnings.
@ 2022-01-17 10:09 Martin Liška
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liška @ 2022-01-17 10:09 UTC (permalink / raw)
  To: gcc-patches

	PR testsuite/104035

gcc/testsuite/ChangeLog:

	* g++.dg/torture/pr57993-2.C: Fix warnings.
---
  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,
-- 
2.34.1


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

* [PATCH][pushed] Fix test warnings.
@ 2022-01-17 10:10 Martin Liška
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liška @ 2022-01-17 10:10 UTC (permalink / raw)
  To: gcc-patches

	PR testsuite/104035

gcc/testsuite/ChangeLog:

	* g++.dg/torture/pr57993-2.C: Fix warnings.
---
  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,
-- 
2.34.1


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

end of thread, other threads:[~2022-01-17 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 10:09 [PATCH][pushed] Fix test warnings Martin Liška
2022-01-17 10:10 Martin Liška

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