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:
9e2882b
)
Eliminate 'missing braces around initializer' gcc warning (hppa)
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 21 Feb 2017 20:38:47 +0000
(23:38 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Tue, 21 Feb 2017 20:38:47 +0000
(23:38 +0300)
* src/atomic_ops/sysdeps/gcc/hppa.h (AO_TS_INITIALIZER): Add extra
outermost {} braces.
src/atomic_ops/sysdeps/gcc/hppa.h
patch
|
blob
|
history
diff --git
a/src/atomic_ops/sysdeps/gcc/hppa.h
b/src/atomic_ops/sysdeps/gcc/hppa.h
index
ae1c315
..
fe38ff8
100644
(file)
--- a/
src/atomic_ops/sysdeps/gcc/hppa.h
+++ b/
src/atomic_ops/sysdeps/gcc/hppa.h
@@
-37,7
+37,7
@@
struct AO_pa_clearable_loc {
#undef AO_TS_INITIALIZER
#define AO_TS_t struct AO_pa_clearable_loc
-#define AO_TS_INITIALIZER {
1,1,1,1
}
+#define AO_TS_INITIALIZER {
{ 1, 1, 1, 1 }
}
/* Switch meaning of set and clear, since we only have an atomic clear */
/* instruction. */
typedef enum {AO_PA_TS_set = 0, AO_PA_TS_clear = 1} AO_PA_TS_val;