]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add better EMPTY_TRANSLATION_UNIT to isc/util.h
authorOndřej Surý <ondrej@sury.org>
Thu, 14 Jun 2018 21:55:17 +0000 (23:55 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 14 Jun 2018 21:58:03 +0000 (17:58 -0400)
lib/isc/include/isc/util.h

index 332dc0c2b9bb9c71287ce194caf2a6c8eb11b874..7b209db5820c116737cf9abda29d95f4933b017d 100644 (file)
@@ -69,7 +69,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 extern int isc__empty;
 
 /*%
  * We use macros instead of calling the routines directly because