Fix warning when compiled without Unicode support.

This commit is contained in:
Philip.Hazel 2019-02-03 14:49:39 +00:00
parent ae913fbee7
commit a657d4cff8
2 changed files with 2 additions and 2 deletions

View File

@ -656,7 +656,7 @@ print("a totally empty module because some compilers barf at that.")
print("Instead, just supply some small dummy tables. */") print("Instead, just supply some small dummy tables. */")
print() print()
print("#ifndef SUPPORT_UNICODE") print("#ifndef SUPPORT_UNICODE")
print("const ucd_record PRIV(ucd_records)[] = {{0,0,0,0,0 }};") print("const ucd_record PRIV(ucd_records)[] = {{0,0,0,0,0,0,0 }};")
print("const uint16_t PRIV(ucd_stage1)[] = {0};") print("const uint16_t PRIV(ucd_stage1)[] = {0};")
print("const uint16_t PRIV(ucd_stage2)[] = {0};") print("const uint16_t PRIV(ucd_stage2)[] = {0};")
print("const uint32_t PRIV(ucd_caseless_sets)[] = {0};") print("const uint32_t PRIV(ucd_caseless_sets)[] = {0};")

View File

@ -33,7 +33,7 @@ a totally empty module because some compilers barf at that.
Instead, just supply some small dummy tables. */ Instead, just supply some small dummy tables. */
#ifndef SUPPORT_UNICODE #ifndef SUPPORT_UNICODE
const ucd_record PRIV(ucd_records)[] = {{0,0,0,0,0 }}; const ucd_record PRIV(ucd_records)[] = {{0,0,0,0,0,0,0 }};
const uint16_t PRIV(ucd_stage1)[] = {0}; const uint16_t PRIV(ucd_stage1)[] = {0};
const uint16_t PRIV(ucd_stage2)[] = {0}; const uint16_t PRIV(ucd_stage2)[] = {0};
const uint32_t PRIV(ucd_caseless_sets)[] = {0}; const uint32_t PRIV(ucd_caseless_sets)[] = {0};