Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSShared Make a gross ...
details: https://anonhg.NetBSD.org/src/rev/768674997462
branches: trunk
changeset: 765278:768674997462
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 23 22:39:25 2011 +0000
description:
Make a gross hack nice enough to not trigger warnings with clang.
diffstat:
external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e538ca7840a2 -r 768674997462 external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c
--- a/external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c Mon May 23 22:30:14 2011 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSShared/uds_daemon.c Mon May 23 22:39:25 2011 +0000
@@ -1115,7 +1115,7 @@
mDNSlocal void FatalError(char *errmsg)
{
LogMsg("%s: %s", errmsg, dnssd_strerror(dnssd_errno));
- *(long*)0 = 0; // On OS X abort() doesn't generate a crash log, but writing to zero does
+ *(volatile long*)0 = 0; // On OS X abort() doesn't generate a crash log, but writing to zero does
abort(); // On platforms where writing to zero doesn't generate an exception, abort instead
}
Home |
Main Index |
Thread Index |
Old Index