Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/lib/isc/include/isc use __unused inste...
details: https://anonhg.NetBSD.org/src/rev/ae2eec61295d
branches: trunk
changeset: 766630:ae2eec61295d
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 29 02:41:03 2011 +0000
description:
use __unused instead of having a function call itself, to provide an
empty translation unit.
diffstat:
external/bsd/ntp/dist/lib/isc/include/isc/util.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7c5d4d73101b -r ae2eec61295d external/bsd/ntp/dist/lib/isc/include/isc/util.h
--- a/external/bsd/ntp/dist/lib/isc/include/isc/util.h Wed Jun 29 02:40:11 2011 +0000
+++ b/external/bsd/ntp/dist/lib/isc/include/isc/util.h Wed Jun 29 02:41:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.h,v 1.1.1.1 2009/12/13 16:54:25 kardel Exp $ */
+/* $NetBSD: util.h,v 1.2 2011/06/29 02:41:03 mrg Exp $ */
/*
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
@@ -72,7 +72,7 @@
* Use this in translation units that would otherwise be empty, to
* suppress compiler warnings.
*/
-#define EMPTY_TRANSLATION_UNIT static void isc__empty(void) { isc__empty(); }
+#define EMPTY_TRANSLATION_UNIT static void __unused isc__empty(void) { }
/*%
* We use macros instead of calling the routines directly because
Home |
Main Index |
Thread Index |
Old Index