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:
edd98e8
)
Workaround 'redundant assignment of *result to itself' cppcheck warning
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 18 Oct 2016 10:05:02 +0000
(13:05 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Tue, 18 Oct 2016 10:05:02 +0000
(13:05 +0300)
* os_dep.c [DGUX || LINUX && SPARC] (GC_SysVGetDataStart): Call
GC_noop1(&v) if CPPCHECK where v = *result.
os_dep.c
patch
|
blob
|
history
diff --git
a/os_dep.c
b/os_dep.c
index
6d12de1
..
1caf988
100644
(file)
--- a/
os_dep.c
+++ b/
os_dep.c
@@
-1852,7
+1852,11
@@
void GC_register_data_segments(void)
GC_setup_temporary_fault_handler();
if (SETJMP(GC_jmp_buf) == 0) {
/* Try writing to the address. */
- *result = *result;
+ char v = *result;
+# if defined(CPPCHECK)
+ GC_noop1((word)&v);
+# endif
+ *result = v;
GC_reset_fault_handler();
} else {
GC_reset_fault_handler();