Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/bind/dist/lib/isc/include/isc llvm detects infi...
details: https://anonhg.NetBSD.org/src/rev/cf0b6c7649af
branches: trunk
changeset: 359645:cf0b6c7649af
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 18 23:51:20 2018 +0000
description:
llvm detects infinite recursion, so don't infinitely recurse.
diffstat:
external/bsd/bind/dist/lib/isc/include/isc/util.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ae7a2d4d5d0e -r cf0b6c7649af external/bsd/bind/dist/lib/isc/include/isc/util.h
--- a/external/bsd/bind/dist/lib/isc/include/isc/util.h Sun Feb 18 23:41:44 2018 +0000
+++ b/external/bsd/bind/dist/lib/isc/include/isc/util.h Sun Feb 18 23:51:20 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.h,v 1.12 2016/05/26 16:50:00 christos Exp $ */
+/* $NetBSD: util.h,v 1.13 2018/02/18 23:51:20 christos Exp $ */
/*
* Copyright (C) 2004-2007, 2010-2012, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
@@ -79,7 +79,7 @@
* Use this in translation units that would otherwise be empty, to
* suppress compiler warnings.
*/
-#define EMPTY_TRANSLATION_UNIT static void __used isc__empty(void) { isc__empty(); }
+#define EMPTY_TRANSLATION_UNIT static void __used isc__empty(int level) { if (level++ < 100) isc__empty(level); }
/*%
* We use macros instead of calling the routines directly because
Home |
Main Index |
Thread Index |
Old Index