* main.c (find_and_set_default_shell, main) [WINDOWS32]: Declare
variables 'const char *' to avoid compiler warnings.
* job.c (construct_command_argv_internal) [!NDEBUG]: Declare 'end'
and set it only if NDEBUG is not defined, to avoid compiler
warnings.
#endif
int i;
char *p;
+#ifndef NDEBUG
char *end;
+#endif
char *ap;
const char *cap;
const char *cp;
/* All the args can fit in a buffer as big as LINE is. */
ap = new_argv[0] = argstr = xmalloc (i);
+#ifndef NDEBUG
end = ap + i;
+#endif
/* I is how many complete arguments have been found. */
i = 0;
int sh_found = 0;
char *atoken = 0;
const char *search_token;
- char *tokend;
+ const char *tokend;
PATH_VAR(sh_path);
extern const char *default_shell;
unsigned int restarts = 0;
unsigned int syncing = 0;
#ifdef WINDOWS32
- char *unix_path = NULL;
- char *windows32_path = NULL;
+ const char *unix_path = NULL;
+ const char *windows32_path = NULL;
SetUnhandledExceptionFilter (handle_runtime_exceptions);