summaryrefslogtreecommitdiffstats
path: root/generic/tclEnv.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 22:59:16 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 22:59:16 (GMT)
commit1adb7a5b43634186dbc9ecbd86aac53f45cdcd3c (patch)
tree7b8b241cc96af93d17bfdff4e31d026831ba3e82 /generic/tclEnv.c
parentba4330456f8bb2e2c45c3dfd27f9e7ce1cdaeb52 (diff)
downloadtcl-1adb7a5b43634186dbc9ecbd86aac53f45cdcd3c.zip
tcl-1adb7a5b43634186dbc9ecbd86aac53f45cdcd3c.tar.gz
tcl-1adb7a5b43634186dbc9ecbd86aac53f45cdcd3c.tar.bz2
[unix] resolving of several warnings (gcc 5.x):
- static used in non-static inline function; - x64 int cast on pointer [-Wpointer-to-int-cast]; - (obscure) may be used uninitialized in this function [-Wmaybe-uninitialized]; - TclEnvEpoch initialized and declared extern;
Diffstat (limited to 'generic/tclEnv.c')
-rw-r--r--generic/tclEnv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclEnv.c b/generic/tclEnv.c
index fd0a8ce..0041a40 100644
--- a/generic/tclEnv.c
+++ b/generic/tclEnv.c
@@ -18,8 +18,9 @@
TCL_DECLARE_MUTEX(envMutex) /* To serialize access to environ. */
-MODULE_SCOPE unsigned long TclEnvEpoch = 0; /* Epoch of the tcl environment
- * (if changed with tcl-env). */
+/* MODULE_SCOPE */
+unsigned long TclEnvEpoch = 0; /* Epoch of the tcl environment
+ * (if changed with tcl-env). */
static struct {
int cacheSize; /* Number of env strings in cache. */