Skip to content

Commit a1fdcf0

Browse files
wille-iorerobika
authored andcommitted
Compile with clang-7.0 (#2754)
jerry_debugger_scope_variable_type_t was not explicitly sized by the compiler as 8bit, accept uint8_t instead (you still can call the fn with a jerry_debugger_scope_variable_type_t) JerryScript-DCO-1.0-Signed-off-by: wille-io [email protected]
1 parent 9c10d82 commit a1fdcf0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jerry-core/debugger/debugger.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,12 @@ jerry_debugger_send_scope_chain (void)
271271

272272
/**
273273
* Get type of the scope variable property.
274+
* @return (jerry_debugger_scope_variable_type_t)
274275
*/
275-
static jerry_debugger_scope_variable_type_t
276+
static uint8_t
276277
jerry_debugger_get_variable_type (ecma_value_t value) /**< input ecma value */
277278
{
278-
jerry_debugger_scope_variable_type_t ret_value = JERRY_DEBUGGER_VALUE_NONE;
279+
uint8_t ret_value = JERRY_DEBUGGER_VALUE_NONE;
279280

280281
if (ecma_is_value_undefined (value))
281282
{
@@ -321,11 +322,12 @@ jerry_debugger_get_variable_type (ecma_value_t value) /**< input ecma value */
321322
*
322323
* It will copies the given scope values type, length and value into the outgoing message string.
323324
*
325+
* @param variable_type type (jerry_debugger_scope_variable_type_t)
324326
* @return true - if the copy was successfully
325327
* false - otherwise
326328
*/
327329
static bool
328-
jerry_debugger_copy_variables_to_string_message (jerry_debugger_scope_variable_type_t variable_type, /**< type */
330+
jerry_debugger_copy_variables_to_string_message (uint8_t variable_type, /**< type */
329331
ecma_string_t *value_str, /**< property name or value string */
330332
jerry_debugger_send_string_t *message_string_p, /**< msg pointer */
331333
size_t *buffer_pos) /**< string data position of the message */
@@ -494,7 +496,7 @@ jerry_debugger_send_scope_variables (const uint8_t *recv_buffer_p) /**< pointer
494496
ecma_property_value_t prop_value_p = prop_pair_p->values[i];
495497
ecma_value_t property_value;
496498

497-
jerry_debugger_scope_variable_type_t variable_type = jerry_debugger_get_variable_type (prop_value_p.value);
499+
uint8_t variable_type = jerry_debugger_get_variable_type (prop_value_p.value);
498500

499501
property_value = ecma_op_to_string (prop_value_p.value);
500502

0 commit comments

Comments
 (0)