From cf5c6ffded5c318c0319b9e14bb86dcc10ae4afd Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 2 Aug 2017 13:34:46 +0200 Subject: [PATCH] loadlibrary.c: Address -Wempty-translation-unit --- expat/lib/loadlibrary.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/expat/lib/loadlibrary.c b/expat/lib/loadlibrary.c index 31b7f312..ffce8683 100644 --- a/expat/lib/loadlibrary.c +++ b/expat/lib/loadlibrary.c @@ -132,4 +132,10 @@ HMODULE _Expat_LoadLibrary(LPCTSTR filename) return hModule; } +#else /* defined(_WIN32) */ + +/* ISO C requires a translation unit to contain at least one declaration + [-Wempty-translation-unit] */ +typedef int _TRANSLATION_UNIT_LOAD_LIBRARY_C_NOT_EMTPY; + #endif /* defined(_WIN32) */ -- 2.40.0