aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-02-10 07:39:25 +1000
committerSteve Bennett <steveb@workware.net.au>2021-02-20 18:12:15 +1000
commit09b34554fde82e64972439a54b3adacc2d66cdc8 (patch)
tree9d95dbce2c0131d92973bd8fe565eaf910470292 /jim.c
parent496fde06b2b2da6801afd83d1b097cea27ab3fa2 (diff)
downloadjimtcl-09b34554fde82e64972439a54b3adacc2d66cdc8.zip
jimtcl-09b34554fde82e64972439a54b3adacc2d66cdc8.tar.gz
jimtcl-09b34554fde82e64972439a54b3adacc2d66cdc8.tar.bz2
jim.c: Fix compiler warning
When namespace is disabled, Jim_memrchr is not needed Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jim.c b/jim.c
index 6224524..f893a01 100644
--- a/jim.c
+++ b/jim.c
@@ -4118,6 +4118,7 @@ static int JimCreateProcedureStatics(Jim_Interp *interp, Jim_Cmd *cmdPtr, Jim_Ob
}
/* memrchr() is not standard */
+#ifdef jim_ext_namespace
static const char *Jim_memrchr(const char *p, int c, int len)
{
int i;
@@ -4128,6 +4129,7 @@ static const char *Jim_memrchr(const char *p, int c, int len)
}
return NULL;
}
+#endif
/**
* If the command is a proc, sets/updates the cached namespace (nsObj)