summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-10-01 18:34:29 +0300
committerEli Zaretskii <eliz@gnu.org>2014-10-01 18:34:29 +0300
commit34f2becc58cd546af5e768c8d934311c55df6622 (patch)
tree67f9871419d0b7ecef0db0bcdaae4219317dc258 /main.c
parent25545b003fb63e7a8520a8a7baea10b691419a4f (diff)
downloadmake-34f2becc58cd546af5e768c8d934311c55df6622.tar.gz
Avoid compilation warnings.
* 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.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 0d43575d..7f14cba5 100644
--- a/main.c
+++ b/main.c
@@ -890,7 +890,7 @@ find_and_set_default_shell (const char *token)
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;
@@ -1032,8 +1032,8 @@ main (int argc, char **argv, char **envp)
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);