projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c96c8
)
Eliminate 'using argument that points at uninitialized var' cppcheck error
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 30 Jan 2018 21:40:23 +0000
(
00:40
+0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 5 Mar 2018 21:35:26 +0000
(
00:35
+0300)
* tests/list_atomic.template [AO_HAVE_test_and_setXX]
(XSIZE_list_atomicXX): Initialize ts local variable (to
AO_TS_INITIALIZER).
tests/list_atomic.template
patch
|
blob
|
history
diff --git
a/tests/list_atomic.template
b/tests/list_atomic.template
index
e613158
..
26a13f4
100644
(file)
--- a/
tests/list_atomic.template
+++ b/
tests/list_atomic.template
@@
-33,7
+33,7
@@
void XSIZE_list_atomicXX(void)
static XCTYPE newval /* = 0 */;
# endif
# if defined(AO_HAVE_test_and_setXX)
- AO_TS_t ts;
+ AO_TS_t ts
= AO_TS_INITIALIZER
;
# endif
# if defined(AO_HAVE_XSIZE_fetch_and_addXX) || defined(AO_HAVE_XSIZE_andXX) \
|| defined(AO_HAVE_XSIZE_orXX) || defined(AO_HAVE_XSIZE_xorXX)