mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 00:32:59 +00:00
Fix warnings with -fstrict-flex-arrays=2
Unfortunatley we cannot set it to 2 in hb.hh; but fix the warning and add it with default value of 1 anyway. Fixes https://github.com/harfbuzz/harfbuzz/pull/4836
This commit is contained in:
parent
634778efc0
commit
16c196e0c3
2 changed files with 2 additions and 1 deletions
|
@ -209,7 +209,7 @@ struct HBUINT32VAR
|
|||
}
|
||||
|
||||
protected:
|
||||
unsigned char v[1];
|
||||
unsigned char v[5];
|
||||
|
||||
public:
|
||||
DEFINE_SIZE_MIN (1);
|
||||
|
|
|
@ -84,6 +84,7 @@
|
|||
#pragma GCC diagnostic error "-Wredundant-decls"
|
||||
#pragma GCC diagnostic error "-Wreorder"
|
||||
#pragma GCC diagnostic error "-Wsign-compare"
|
||||
#pragma GCC diagnostic error "-Wstrict-flex-arrays"
|
||||
#pragma GCC diagnostic error "-Wstrict-prototypes"
|
||||
#pragma GCC diagnostic error "-Wstring-conversion"
|
||||
#pragma GCC diagnostic error "-Wswitch-enum"
|
||||
|
|
Loading…
Add table
Reference in a new issue