From d4bc9052beb3305d64a353a16641740380eb87af Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Fri, 21 Jun 2019 10:00:58 -0700 Subject: Turn on warnings when building libap. For ape, we never enabled warnings in cflags. Turning it on brings up a lot of warnings. Most are noise, but a few caught unused variables and trunctaions of pointers. to smaller integers (int, long). A few warnings remain. --- sys/src/ape/lib/ap/plan9/execve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/ape/lib/ap/plan9/execve.c') diff --git a/sys/src/ape/lib/ap/plan9/execve.c b/sys/src/ape/lib/ap/plan9/execve.c index e11ca1c21..1761f3183 100644 --- a/sys/src/ape/lib/ap/plan9/execve.c +++ b/sys/src/ape/lib/ap/plan9/execve.c @@ -85,7 +85,7 @@ execve(const char *name, const char *argv[], const char *envp[]) _CLOSE(f); } if(envp){ - for(e = envp; (ss = *e); e++) { + for(e = (char**)envp; (ss = *e); e++) { se = strchr(ss, '='); if(!se || ss==se) continue; /* what is name? value? */ -- cgit v1.2.3