projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91770e1
)
Fix warning about "may be used uninitialized"
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 16 Aug 2017 00:12:21 +0000
(17:12 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 16 Aug 2017 00:12:21 +0000
(17:12 -0700)
src/hb-ot-layout-common-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-common-private.hh
b/src/hb-ot-layout-common-private.hh
index 180e5f086ebc669d9a28dfc93be39c6a248b4ed8..578d850c184ff5bf240b73057c19ee8ed04a4ced 100644
(file)
--- a/
src/hb-ot-layout-common-private.hh
+++ b/
src/hb-ot-layout-common-private.hh
@@
-941,7
+941,7
@@
struct Coverage
}
struct Iter {
- Iter (void) : format (0) {};
+ Iter (void) : format (0)
, u ()
{};
inline void init (const Coverage &c_) {
format = c_.u.format;
switch (format) {
@@
-982,8
+982,8
@@
struct Coverage
private:
unsigned int format;
union {
+ CoverageFormat2::Iter format2; /* Put this one first since it's larger; helps shut up compiler. */
CoverageFormat1::Iter format1;
- CoverageFormat2::Iter format2;
} u;
};