From: Robert Dubner <[email protected]>
Date: Sat, 19 Sep 2026 18:07:29 -0400
Subject: [PATCH] cobol: Eliminate -Werror failure.
A -Werror failure was caused by an unused static function. This patch
comments it out.
gcc/cobol/ChangeLog:
* parse.y: Comment out unused passby_str() function.
---
gcc/cobol/parse.y | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/cobol/parse.y b/gcc/cobol/parse.y
index 3bbf60e17e7..575a2727600 100644
--- a/gcc/cobol/parse.y
+++ b/gcc/cobol/parse.y
@@ -13066,6 +13066,7 @@ bad_arg( const char name[],
return ok;
}
+#if 0
static const char *
passby_str(int mask)
{
@@ -13083,6 +13084,8 @@ passby_str(int mask)
return "UNKNOWN PASSING METHOD";
}
+#endif
+
// Verify provided actual parameters against formals.
static void
--
2.34.1