mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix build warning in jerry-ext/arg on tizenrt-artik05x
tizenrt-arttik05x treats warning as error for uninitialized use. This patch fixes the error in jerry-ext/arg by initializing to zero. JerryScript-DCO-1.0-Signed-off-by: Sanggyu Lee sg5.lee@samsung.com
This commit is contained in:
parent
a823169bde
commit
0b08322a21
@ -169,7 +169,7 @@ jerryx_arg_helper_process_double (double *d, /**< [in, out] the number to be pro
|
||||
jerry_value_t jerryx_arg_transform_ ## type ## suffix (jerryx_arg_js_iterator_t *js_arg_iter_p, \
|
||||
const jerryx_arg_t *c_arg_p) \
|
||||
{ \
|
||||
double tmp; \
|
||||
double tmp = 0.0; \
|
||||
jerry_value_t rv = jerryx_arg_transform_number ## suffix ## _common (js_arg_iter_p, &tmp); \
|
||||
if (jerry_value_has_error_flag (rv)) \
|
||||
{ \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user