Martin Storsjo : widl: Make decl_needs_parens static.

Alexandre Julliard julliard at winehq.org
Fri Jun 12 16:01:17 CDT 2020


Module: wine
Branch: master
Commit: d51c5723c3cef9ed42ae6e6b8fdab34330bc7a27
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d51c5723c3cef9ed42ae6e6b8fdab34330bc7a27

Author: Martin Storsjo <martin at martin.st>
Date:   Fri Jun 12 15:08:42 2020 +0300

widl: Make decl_needs_parens static.

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>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 c00a3e1bb3..a319f2425e 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;




More information about the wine-cvs mailing list