aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-17 10:55:32 +0100
committerMartin Liska <mliska@suse.cz>2022-01-17 10:55:55 +0100
commitd4c02ec777943c88378c1357d9cd6cfb0433c1bc (patch)
treee85354cc4d52d2c1fdb50700be44d2fd98b074bc /gcc
parenta923345c72aef9ebb6b32f81f4825acc11085803 (diff)
downloadgcc-d4c02ec777943c88378c1357d9cd6cfb0433c1bc.zip
gcc-d4c02ec777943c88378c1357d9cd6cfb0433c1bc.tar.gz
gcc-d4c02ec777943c88378c1357d9cd6cfb0433c1bc.tar.bz2
Fix test warnings.
PR testsuite/104035 gcc/testsuite/ChangeLog: * g++.dg/torture/pr57993-2.C: Fix warnings.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/torture/pr57993-2.C22
1 files 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 b7bffa8..529b5a9 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,