From fb2f857a3d824a34b38b8e15619f1844dad6e1bd Mon Sep 17 00:00:00 2001 From: Helmut Eller Date: Mon, 12 Dec 2016 16:36:59 +0100 Subject: [PATCH] Use static in definition too, not just in prototype declaration * csrc/pfcompil.c (ffUnSmudge, FindAndCompile): VBCC refuses to compile this unless function with static prototypes also have use static definitions. --- csrc/pfcompil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csrc/pfcompil.c b/csrc/pfcompil.c index 9397fa3..04bc000 100644 --- a/csrc/pfcompil.c +++ b/csrc/pfcompil.c @@ -661,7 +661,7 @@ void ffDefer( void ) } /* Unsmudge the word to make it visible. */ -void ffUnSmudge( void ) +static void ffUnSmudge( void ) { *(char*)gVarContext &= ~FLAG_SMUDGE; } @@ -737,7 +737,7 @@ void ffFPLiteral( PF_FLOAT fnum ) #endif /* PF_SUPPORT_FP */ /**************************************************************/ -ThrowCode FindAndCompile( const char *theWord ) +static ThrowCode FindAndCompile( const char *theWord ) { cell_t Flag; ExecToken XT; -- 2.20.1