[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
leave.c:19:19: error: ISO C requires a translation unit to contain at le
From: |
Dennis Clarke |
Subject: |
leave.c:19:19: error: ISO C requires a translation unit to contain at least one declaration |
Date: |
Thu, 10 Aug 2023 14:30:26 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
Another oddball seen when trying to compile with C99 strict CFLAGS :
leave.c:19:19: error: ISO C requires a translation unit to contain at
least one declaration [-Werror,-Wempty-translation-unit]
#include CFG_LEAVE
^
1 error generated.
hydra$ diff -u ./src/leave.c.orig ./src/leave.c
--- ./src/leave.c.orig 2021-05-16 18:29:27.000000000 +0000
+++ ./src/leave.c 2023-08-10 18:16:39.416058000 +0000
@@ -17,3 +17,7 @@
#include "config.h"
#include CFG_LEAVE
+
+/* and now for something completely stupid */
+int just_declare_something = 42;
+
hydra$
Seems to make that error go away.
--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- leave.c:19:19: error: ISO C requires a translation unit to contain at least one declaration,
Dennis Clarke <=