Eliminate 'ISO C forbids an empty translation unit' GCC pedantic warning
authorIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 08:18:22 +0000 (11:18 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 08:19:26 +0000 (11:19 +0300)
"extern int GC_quiet" is added to suppress compiler warning.

* extra/msvc_dbg.c [_M_AMD64 || !_MSC_VER] (GC_quiet): Declare external
variable.

extra/msvc_dbg.c

index 4862a59..f0eef2f 100644 (file)
@@ -377,4 +377,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 */