diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-08 16:17:31 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-18 12:28:40 +0200 |
commit | efb971f9df0a8f2ed908a19147ca7b0036b4515d (patch) | |
tree | 97ebb30c75e118a2f1552ff8795710acbc3b6ed0 /darwin/Platform.c | |
parent | 475f729a364ce92999f67adba4d754babe12a266 (diff) |
Fail travis CI on compiler warnings
Diffstat (limited to 'darwin/Platform.c')
-rw-r--r-- | darwin/Platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index a8ca45b2..1186fe04 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -263,11 +263,11 @@ char* Platform_getProcessEnv(pid_t pid) { mib[0] = CTL_KERN; mib[1] = KERN_PROCARGS2; mib[2] = pid; - size_t bufsz = argmax; + bufsz = argmax; if (sysctl(mib, 3, buf, &bufsz, 0, 0) == 0) { if (bufsz > sizeof(int)) { char *p = buf, *endp = buf + bufsz; - int argc = *(int*)p; + int argc = *(int*)(void*)p; p += sizeof(int); // skip exe |