mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
json loader: fix warnings in jerryscript on Windows
This commit is contained in:
parent
6e4b8a5bdf
commit
4a23c39520
2 changed files with 3 additions and 3 deletions
|
@ -1605,7 +1605,7 @@ ecma_compare_ecma_strings_longpath (const ecma_string_t *string1_p, /**< ecma-st
|
|||
const ecma_string_t *string2_p) /**< ecma-string */
|
||||
{
|
||||
const lit_utf8_byte_t *utf8_string1_p, *utf8_string2_p;
|
||||
lit_utf8_size_t string1_size_and_length[2], string2_size_and_length[2];
|
||||
lit_utf8_size_t string1_size_and_length[2] = { 0, 0 }, string2_size_and_length[2] = { 0, 0 };
|
||||
|
||||
utf8_string1_p = ecma_compare_get_string_chars (string1_p, string1_size_and_length);
|
||||
utf8_string2_p = ecma_compare_get_string_chars (string2_p, string2_size_and_length);
|
||||
|
|
|
@ -292,7 +292,7 @@ typedef struct
|
|||
* All data allocated by the parser is
|
||||
* stored in parser_data_pages in the memory.
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
#if defined(_MSC_VER )
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4200)
|
||||
#endif
|
||||
|
@ -301,7 +301,7 @@ typedef struct parser_mem_page_t
|
|||
struct parser_mem_page_t *next_p; /**< next page */
|
||||
uint8_t bytes[]; /**< memory bytes, C99 flexible array member */
|
||||
} parser_mem_page_t;
|
||||
#if defined(_WIN32)
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue