<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/58cb6a1a02edcd881963dfe9e797e17dd01561bb">https://github.com/macports/macports-base/commit/58cb6a1a02edcd881963dfe9e797e17dd01561bb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 58cb6a1a02edcd881963dfe9e797e17dd01561bb
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Wed Jul 12 02:37:23 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> darwintrace: Silence compiler warnings on 10.5 ppc
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Silence warnings reported by old compiler on 10.5 ppc:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> sip_copy_proc.c:489: warning: control reaches end of non-void function
</span><span style='display:block; white-space:pre;color:#404040;'> sip_copy_proc.c:536: warning: control reaches end of non-void function
</span><span style='display:block; white-space:pre;color:#404040;'> darwintrace.c:651: warning: 'command' may be used uninitialized in this function
</span>---
src/darwintracelib1.0/darwintrace.c | 2 +-
src/pextlib1.0/sip_copy_proc.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/darwintracelib1.0/darwintrace.c b/src/darwintracelib1.0/darwintrace.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 644b924..0f3f753 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/darwintracelib1.0/darwintrace.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/darwintracelib1.0/darwintrace.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -648,7 +648,7 @@ static char *__send(const char *buf, uint32_t len, int answer) {
</span> static inline bool __darwintrace_sandbox_check(const char *path, int flags) {
filemap_iterator_t filemap_it;
<span style='display:block; white-space:pre;background:#ffe0e0;'>- char command;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char command = -1;
</span> char *t;
if (path[0] == '/' && path[1] == '\0') {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/pextlib1.0/sip_copy_proc.c b/src/pextlib1.0/sip_copy_proc.c
</span><span style='display:block; white-space:pre;color:#808080;'>index b60f975..d03b491 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/pextlib1.0/sip_copy_proc.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/pextlib1.0/sip_copy_proc.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -486,6 +486,8 @@ int sip_copy_execve(const char *path, char *const argv[], char *const envp[]) {
</span> }
break;
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -1;
</span> }
/**
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -533,4 +535,6 @@ int sip_copy_posix_spawn(
</span> }
break;
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -1;
</span> }
</pre><pre style='margin:0'>
</pre>