projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e421fee
)
Eliminate 'ISO C forbids an empty translation unit' GCC pedantic warning
author
Ivan Maidanski
<ivmai@mail.ru>
Fri, 21 Oct 2016 08:18:22 +0000
(11:18 +0300)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/extra/msvc_dbg.c
b/extra/msvc_dbg.c
index
4862a59
..
f0eef2f
100644
(file)
--- a/
extra/msvc_dbg.c
+++ b/
extra/msvc_dbg.c
@@
-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 */