XQuartz: Silence -Wpointer-bool-conversion
X11Controller.m:417:17: error: address of function 'asl_log_descriptor' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion,Value Conversion Issue] if (asl_log_descriptor) { ~~ ^~~~~~~~~~~~~~~~~~ X11Controller.m:417:17: note: prefix with the address-of operator to silence this warning [Semantic Issue] if (asl_log_descriptor) { ^ & Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
7761106639
commit
0b9c324891
|
@ -364,7 +364,7 @@ extern char *bundle_id_prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||||
if (asl_log_descriptor) {
|
if (&asl_log_descriptor) {
|
||||||
char *asl_sender;
|
char *asl_sender;
|
||||||
aslmsg amsg = asl_new(ASL_TYPE_MSG);
|
aslmsg amsg = asl_new(ASL_TYPE_MSG);
|
||||||
assert(amsg);
|
assert(amsg);
|
||||||
|
@ -414,7 +414,7 @@ extern char *bundle_id_prefix;
|
||||||
|
|
||||||
case 0: /* child2 */
|
case 0: /* child2 */
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||||
if (asl_log_descriptor) {
|
if (&asl_log_descriptor) {
|
||||||
/* Replace our stdout/stderr */
|
/* Replace our stdout/stderr */
|
||||||
dup2(stdout_pipe[1], STDOUT_FILENO);
|
dup2(stdout_pipe[1], STDOUT_FILENO);
|
||||||
dup2(stderr_pipe[1], STDERR_FILENO);
|
dup2(stderr_pipe[1], STDERR_FILENO);
|
||||||
|
@ -443,7 +443,7 @@ extern char *bundle_id_prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||||
if (asl_log_descriptor) {
|
if (&asl_log_descriptor) {
|
||||||
/* Close the write ends of the pipe */
|
/* Close the write ends of the pipe */
|
||||||
close(stdout_pipe[1]);
|
close(stdout_pipe[1]);
|
||||||
close(stderr_pipe[1]);
|
close(stderr_pipe[1]);
|
||||||
|
|
Loading…
Reference in New Issue