Bug 1914333 - Backport -fstrict-flex-arrays=2 support for harfbuzz r=gfx-reviewers,nical

Differential Revision: https://phabricator.services.mozilla.com/D219850
This commit is contained in:
serge-sans-paille 2024-09-03 09:28:01 +00:00
parent 56e86cd051
commit ad10848805
3 changed files with 6 additions and 1 deletions

View File

@ -60,6 +60,10 @@ vendoring:
- "src/test*"
- src/hb-ucdn
patches:
# See discussion in https://github.com/harfbuzz/harfbuzz/pull/4836
- 0001-Fix-warnings-with-fstrict-flex-arrays-2.patch
updatebot:
maintainer-phab: jfkthame
maintainer-bz: jfkthame@gmail.com

View File

@ -209,7 +209,7 @@ struct HBUINT32VAR
}
protected:
unsigned char v[1];
unsigned char v[5];
public:
DEFINE_SIZE_MIN (1);

View File

@ -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"