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:
caa4a79
)
Fix 'zero-size array is extension' Clang warning in os_dep (Linux/x86)
author
Ivan Maidanski
<ivmai@mail.ru>
Mon, 30 Jan 2017 03:51:12 +0000
(06:51 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 30 Jan 2017 03:58:42 +0000
(06:58 +0300)
* os_dep.c [I386 && LINUX && SAVE_CALL_CHAIN] (struct frame): Do not
declare fr_arg[NARGS] field if NARGS is zero.
os_dep.c
patch
|
blob
|
history
diff --git
a/os_dep.c
b/os_dep.c
index
987158a
..
0fb5ccc
100644
(file)
--- a/
os_dep.c
+++ b/
os_dep.c
@@
-4384,7
+4384,9
@@
GC_API int GC_CALL GC_get_pages_executable(void)
struct frame {
struct frame *fr_savfp;
long fr_savpc;
- long fr_arg[NARGS]; /* All the arguments go here. */
+# if NARGS > 0
+ long fr_arg[NARGS]; /* All the arguments go here. */
+# endif
};
#endif