Module Name:    src
Committed By:   christos
Date:           Sun Feb 18 23:51:20 UTC 2018

Modified Files:
        src/external/bsd/bind/dist/lib/isc/include/isc: util.h

Log Message:
llvm detects infinite recursion, so don't infinitely recurse.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
    src/external/bsd/bind/dist/lib/isc/include/isc/util.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/bind/dist/lib/isc/include/isc/util.h
diff -u src/external/bsd/bind/dist/lib/isc/include/isc/util.h:1.12 src/external/bsd/bind/dist/lib/isc/include/isc/util.h:1.13
--- src/external/bsd/bind/dist/lib/isc/include/isc/util.h:1.12	Thu May 26 12:50:00 2016
+++ src/external/bsd/bind/dist/lib/isc/include/isc/util.h	Sun Feb 18 18:51:20 2018
@@ -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

Reply via email to