From 8ddc8a6da385fbbb24eba678b7a2f5835a9f8558 Mon Sep 17 00:00:00 2001 From: Carlos Maddela Date: Fri, 9 Dec 2016 15:43:58 +1100 Subject: [PATCH] Prevent empty translation units to satisfy ISO C compilers. --- src/debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/debug.c b/src/debug.c index 245eb90..013571c 100644 --- a/src/debug.c +++ b/src/debug.c @@ -22,4 +22,10 @@ void DUMP_PROXY_CHAIN(proxy_data *pchain, unsigned int count) { } } +#else + +// Do not allow this translation unit to end up empty +// for non-DEBUG builds, to satisfy ISO C standards. +typedef int __appease_iso_compilers__; + #endif