Skip to content

Compile with clang-7.0 #2754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions jerry-core/debugger/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,12 @@ jerry_debugger_send_scope_chain (void)

/**
* Get type of the scope variable property.
* @return (jerry_debugger_scope_variable_type_t)
*/
static jerry_debugger_scope_variable_type_t
static uint8_t
jerry_debugger_get_variable_type (ecma_value_t value) /**< input ecma value */
{
jerry_debugger_scope_variable_type_t ret_value = JERRY_DEBUGGER_VALUE_NONE;
uint8_t ret_value = JERRY_DEBUGGER_VALUE_NONE;

if (ecma_is_value_undefined (value))
{
Expand Down Expand Up @@ -321,11 +322,12 @@ jerry_debugger_get_variable_type (ecma_value_t value) /**< input ecma value */
*
* It will copies the given scope values type, length and value into the outgoing message string.
*
* @param variable_type type (jerry_debugger_scope_variable_type_t)
* @return true - if the copy was successfully
* false - otherwise
*/
static bool
jerry_debugger_copy_variables_to_string_message (jerry_debugger_scope_variable_type_t variable_type, /**< type */
jerry_debugger_copy_variables_to_string_message (uint8_t variable_type, /**< type */
ecma_string_t *value_str, /**< property name or value string */
jerry_debugger_send_string_t *message_string_p, /**< msg pointer */
size_t *buffer_pos) /**< string data position of the message */
Expand Down Expand Up @@ -494,7 +496,7 @@ jerry_debugger_send_scope_variables (const uint8_t *recv_buffer_p) /**< pointer
ecma_property_value_t prop_value_p = prop_pair_p->values[i];
ecma_value_t property_value;

jerry_debugger_scope_variable_type_t variable_type = jerry_debugger_get_variable_type (prop_value_p.value);
uint8_t variable_type = jerry_debugger_get_variable_type (prop_value_p.value);

property_value = ecma_op_to_string (prop_value_p.value);

Expand Down