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:
38c3592
)
Eliminate 'struct member is never used' cppcheck warnings in os_dep
author
Ivan Maidanski
<ivmai@mail.ru>
Thu, 22 Nov 2018 10:01:16 +0000
(13:01 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Thu, 22 Nov 2018 10:01:16 +0000
(13:01 +0300)
* os_dep.c [SPARC && LINUX] (struct frame): Declare only if
SAVE_CALL_CHAIN.
os_dep.c
patch
|
blob
|
history
diff --git
a/os_dep.c
b/os_dep.c
index
57cda3e
..
026aaf6
100644
(file)
--- a/
os_dep.c
+++ b/
os_dep.c
@@
-4500,6
+4500,7
@@
GC_API int GC_CALL GC_get_pages_executable(void)
# if defined(LINUX)
# include <features.h>
+# if defined(SAVE_CALL_CHAIN)
struct frame {
long fr_local[8];
long fr_arg[6];
@@
-4511,6
+4512,7
@@
GC_API int GC_CALL GC_get_pages_executable(void)
long fr_argd[6];
long fr_argx[0];
};
+# endif
# elif defined (DRSNX)
# include <sys/sparc/frame.h>
# elif defined(OPENBSD)