mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-16 13:49:23 +00:00
fix(core): ldml: remove 0-length arrays 🙀
- need a pragma to suppress this on MSVC #7098
This commit is contained in:
parent
59fc1521dd
commit
a31cbc91bf
1 changed files with 16 additions and 0 deletions
|
|
@ -14,6 +14,14 @@ namespace km {
|
|||
namespace kbp {
|
||||
namespace kmx {
|
||||
|
||||
/**
|
||||
* Using C99 flexible array initializers: entries[]
|
||||
* https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-levels-2-and-4-c4200
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
#pragma warning ( disable : 4200 )
|
||||
#endif
|
||||
|
||||
struct COMP_KMXPLUS_HEADER {
|
||||
KMX_DWORD ident; // 0000 Section name
|
||||
KMX_DWORD size; // 0004 Section length
|
||||
|
|
@ -123,6 +131,14 @@ struct COMP_KMXPLUS_VKEY {
|
|||
|
||||
static_assert(sizeof(struct COMP_KMXPLUS_VKEY) == LDML_LENGTH_VKEY, "mismatched size of section vkey");
|
||||
|
||||
/**
|
||||
* See above
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
#pragma warning ( default : 4200 )
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* @brief Validate that this data is the named section.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue