From: Ivan Maidanski Date: Fri, 21 Oct 2016 08:18:22 +0000 (+0300) Subject: Eliminate 'ISO C forbids an empty translation unit' GCC pedantic warning X-Git-Tag: v7.4.6~244 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8c6b3163baad96eb6137061be4d871376b011da;p=gc Eliminate 'ISO C forbids an empty translation unit' GCC pedantic warning "extern int GC_quiet" is added to suppress compiler warning. * extra/msvc_dbg.c [_M_AMD64 || !_MSC_VER] (GC_quiet): Declare external variable. --- diff --git a/extra/msvc_dbg.c b/extra/msvc_dbg.c index abf46717..fbceff42 100644 --- a/extra/msvc_dbg.c +++ b/extra/msvc_dbg.c @@ -378,4 +378,9 @@ char** backtrace_symbols(void*const* addresses, int count) return symbols; } -#endif /* !_M_AMD64 */ +#else + + extern int GC_quiet; + /* ANSI C does not allow translation units to be empty. */ + +#endif /* _M_AMD64 */