llvm detects infinite recursion, so don't infinitely recurse.
This commit is contained in:
parent
e1e22576fa
commit
6402a3dbee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue