Commit 5161c4a31d93a3d32bcfcf48df4b2381c867bd48

Thomas de Grivel 2022-11-17T01:01:10

configure

diff --git a/libc3/configure b/libc3/configure
index 84e61b0..81adc3a 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -41,7 +41,7 @@ LDFLAGS="${LDFLAGS:=}"
 LIBS="${LIBS:=-lm -lffi}"
 
 # Common config for all targets
-CFLAGS="$CFLAGS -W -Wall -Werror -Wno-empty-translation-unit -std=c99 -pedantic"
+CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic"
 config_asan
 config_libbsd
 config_libcrypto
diff --git a/libc3/debug.c b/libc3/debug.c
index 040d424..8248626 100644
--- a/libc3/debug.c
+++ b/libc3/debug.c
@@ -17,4 +17,8 @@
 
 s_buf g_debug_buf = {0};
 
+#else
+
+typedef struct debug s_debug;
+
 #endif /* DEBUG */