From 9ef65ef45a3ece12957e8c21fcf15d28cdd5b18b Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Wed, 1 Apr 2015 17:27:49 +0300 Subject: [PATCH] Fixing missing initializer warning for unused fields in extension declarations. --- jerry-core/jerry-extension.inc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jerry-core/jerry-extension.inc.h b/jerry-core/jerry-extension.inc.h index b0284b485..c58bf9a1a 100644 --- a/jerry-core/jerry-extension.inc.h +++ b/jerry-core/jerry-extension.inc.h @@ -42,6 +42,9 @@ static const jerry_extension_field_t jerry_extension_fields [JERRY_EXTENSION_FIE { # _field_name, JERRY_API_DATA_TYPE_ ## _type, _value }, # include EXTENSION_DESCRIPTION_HEADER #undef EXTENSION_FIELD + { + NULL, JERRY_API_DATA_TYPE_UNDEFINED, NULL + } }; /* Functions wrapper definitions */ @@ -98,6 +101,9 @@ static const jerry_extension_function_t jerry_extension_functions [JERRY_EXTENSI }, # include EXTENSION_DESCRIPTION_HEADER #undef EXTENSION_FUNCTION + { + NULL, NULL, NULL, 0 + } }; static jerry_extension_descriptor_t jerry_extension