[PATCH] widl: Make decl_needs_parens static

Martin Storsjo martin at martin.st
Fri Jun 12 07:08:42 CDT 2020


This function lacks a declaration in header.h and isn't used
outside of this source file.

This fixes warnings about missing a prototype, when built as part
of mingw-w64-tools (where it is built with -Wmissing-prototypes).

Signed-off-by: Martin Storsjo <martin at martin.st>
---
 tools/widl/header.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/widl/header.c b/tools/widl/header.c
index c00a3e1bb3e..a319f2425e3 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -283,7 +283,7 @@ int needs_space_after(type_t *t)
           (!is_ptr(t) && (!is_array(t) || !type_array_is_decl_as_ptr(t) || t->name)));
 }
 
-int decl_needs_parens(const type_t *t)
+static int decl_needs_parens(const type_t *t)
 {
     if (type_is_alias(t))
         return FALSE;
-- 
2.17.1




More information about the wine-devel mailing list