Use static in definition too, not just in prototype declaration
authorHelmut Eller <eller.helmut@gmail.com>
Mon, 12 Dec 2016 15:36:59 +0000 (16:36 +0100)
committerHelmut Eller <eller.helmut@gmail.com>
Mon, 12 Dec 2016 15:49:03 +0000 (16:49 +0100)
* csrc/pfcompil.c (ffUnSmudge, FindAndCompile): VBCC refuses to
compile this unless function with static prototypes also have use
static definitions.

csrc/pfcompil.c

index 9397fa3..04bc000 100644 (file)
@@ -661,7 +661,7 @@ void ffDefer( void )
 }
 
 /* Unsmudge the word to make it visible. */
 }
 
 /* Unsmudge the word to make it visible. */
-void ffUnSmudge( void )
+static void ffUnSmudge( void )
 {
     *(char*)gVarContext &= ~FLAG_SMUDGE;
 }
 {
     *(char*)gVarContext &= ~FLAG_SMUDGE;
 }
@@ -737,7 +737,7 @@ void ffFPLiteral( PF_FLOAT fnum )
 #endif /* PF_SUPPORT_FP */
 
 /**************************************************************/
 #endif /* PF_SUPPORT_FP */
 
 /**************************************************************/
-ThrowCode FindAndCompile( const char *theWord )
+static ThrowCode FindAndCompile( const char *theWord )
 {
     cell_t Flag;
     ExecToken XT;
 {
     cell_t Flag;
     ExecToken XT;