aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-01-03 15:46:16 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-01-03 15:46:16 +0100
commit47a904d8ea238e27c5d9163d2e21c94005ca4309 (patch)
treed5044e44a29ea09ef06d9aeca585b29041222a24 /erts/etc/common
parentbfa80a4e35f0a7e8268c2cdf83182510dae91323 (diff)
downloadotp-47a904d8ea238e27c5d9163d2e21c94005ca4309.tar.gz
otp-47a904d8ea238e27c5d9163d2e21c94005ca4309.tar.bz2
otp-47a904d8ea238e27c5d9163d2e21c94005ca4309.zip
heart: Suppress compiler warnings
Diffstat (limited to 'erts/etc/common')
-rw-r--r--erts/etc/common/heart.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/erts/etc/common/heart.c b/erts/etc/common/heart.c
index 7a5746e630..fae4d870cc 100644
--- a/erts/etc/common/heart.c
+++ b/erts/etc/common/heart.c
@@ -685,14 +685,16 @@ do_terminate(reason)
print_error("Would reboot. Terminating.");
else {
kill_old_erlang();
- system(command);
+ /* suppress gcc warning with 'if' */
+ if(system(command));
print_error("Executed \"%s\". Terminating.",command);
}
free_env_val(command);
}
else {
kill_old_erlang();
- system((char*)&cmd[0]);
+ /* suppress gcc warning with 'if' */
+ if(system((char*)&cmd[0]));
print_error("Executed \"%s\". Terminating.",cmd);
}
}