Skip to content

Commit

Permalink
Fix compiler warnings on mingw32
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Bennett <steveb@workware.net.au>
  • Loading branch information
msteveb committed Sep 4, 2024
1 parent 1c14668 commit 90aa60b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jim.c
Original file line number Diff line number Diff line change
Expand Up @@ -12704,7 +12704,7 @@ static int Jim_LoopCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *arg
{
int retval;
jim_wide i;
jim_wide limit;
jim_wide limit = 0;
jim_wide incr = 1;
Jim_Obj *bodyObjPtr;

Expand Down Expand Up @@ -16291,11 +16291,12 @@ char **Jim_GetEnviron(void)
{
#if defined(HAVE__NSGETENVIRON)
return *_NSGetEnviron();
#elif defined(_environ)
return _environ;
#else
#if !defined(NO_ENVIRON_EXTERN)
extern char **environ;
#endif

return environ;
#endif
}
Expand All @@ -16304,6 +16305,8 @@ void Jim_SetEnviron(char **env)
{
#if defined(HAVE__NSGETENVIRON)
*_NSGetEnviron() = env;
#elif defined(_environ)
_environ = env;
#else
#if !defined(NO_ENVIRON_EXTERN)
extern char **environ;
Expand Down

0 comments on commit 90aa60b

Please sign in to comment.