42%] Building C object CMakeFiles/libiotjs.dir/src/modules/iotjs_module_https.c.o
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘iotjs_https_create’:
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:72:45: error: passing argument 1 of ‘jerry_acquire_value’ makes integer from pointer without a cast [-Werror=int-conversion]
_this->jthis_native = jerry_acquire_value(jthis);
^~~~~
In file included from /home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript.h:19:0,
from /home/tosyu/Projects/iotjs/src/iotjs_binding.h:20,
from /home/tosyu/Projects/iotjs/src/iotjs_def.h:171,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.h:19,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:16:
/home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript-core.h:344:15: note: expected ‘jerry_value_t {aka unsigned int}’ but argument is of type ‘const iotjs_jval_t {aka const unsigned int }’
jerry_value_t jerry_acquire_value (jerry_value_t value);
^~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘iotjs_https_jthis_from_https’:
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:296:15: error: return makes pointer from integer without a cast [-Werror=int-conversion]
return _this->jthis_native;
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘iotjs_https_jcallback’:
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:304:27: error: passing argument 1 of ‘jerry_value_is_null’ makes integer from pointer without a cast [-Werror=int-conversion]
if (jerry_value_is_null(jthis))
^~~~~
In file included from /home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript.h:19:0,
from /home/tosyu/Projects/iotjs/src/iotjs_binding.h:20,
from /home/tosyu/Projects/iotjs/src/iotjs_def.h:171,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.h:19,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:16:
/home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript-core.h:281:6: note: expected ‘jerry_value_t {aka const unsigned int}’ but argument is of type ‘iotjs_jval_t * {aka unsigned int *}’
bool jerry_value_is_null (const jerry_value_t value);
^~~~~~~~~~~~~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:308:31: error: passing argument 1 of ‘iotjs_jval_get_property’ makes integer from pointer without a cast [-Werror=int-conversion]
iotjs_jval_get_property(jthis, IOTJS_MAGIC_STRING__INCOMING);
^~~~~
In file included from /home/tosyu/Projects/iotjs/src/iotjs_def.h:171:0,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.h:19,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:16:
/home/tosyu/Projects/iotjs/src/iotjs_binding.h:87:14: note: expected ‘iotjs_jval_t {aka unsigned int}’ but argument is of type ‘iotjs_jval_t * {aka unsigned int *}’
iotjs_jval_t iotjs_jval_get_property(iotjs_jval_t jobj, const char* name);
^~~~~~~~~~~~~~~~~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘iotjs_https_data_to_write’:
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:382:46: error: passing argument 1 of ‘jerry_acquire_value’ makes integer from pointer without a cast [-Werror=int-conversion]
_this->read_callback = jerry_acquire_value(callback);
^~~~~~~~
In file included from /home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript.h:19:0,
from /home/tosyu/Projects/iotjs/src/iotjs_binding.h:20,
from /home/tosyu/Projects/iotjs/src/iotjs_def.h:171,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.h:19,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:16:
/home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript-core.h:344:15: note: expected ‘jerry_value_t {aka unsigned int}’ but argument is of type ‘const iotjs_jval_t * {aka const unsigned int *}’
jerry_value_t jerry_acquire_value (jerry_value_t value);
^~~~~~~~~~~~~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:383:45: error: passing argument 1 of ‘jerry_acquire_value’ makes integer from pointer without a cast [-Werror=int-conversion]
_this->read_onwrite = jerry_acquire_value(onwrite);
^~~~~~~
In file included from /home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript.h:19:0,
from /home/tosyu/Projects/iotjs/src/iotjs_binding.h:20,
from /home/tosyu/Projects/iotjs/src/iotjs_def.h:171,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.h:19,
from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:16:
/home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript-core.h:344:15: note: expected ‘jerry_value_t {aka unsigned int}’ but argument is of type ‘const iotjs_jval_t * {aka const unsigned int *}’
jerry_value_t jerry_acquire_value (jerry_value_t value);
^~~~~~~~~~~~~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘createRequest’:
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:759:72: error: passing argument 7 of ‘iotjs_https_create’ makes pointer from integer without a cast [-Werror=int-conversion]
iotjs_string_data(&key), reject_unauthorized, jthis);
^~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:31:16: note: expected ‘const iotjs_jval_t * {aka const unsigned int *}’ but argument is of type ‘iotjs_jval_t {aka const unsigned int}’
iotjs_https_t* iotjs_https_create(const char* URL, const char* method,
^~~~~~~~~~~~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘_write’:
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:826:53: error: passing argument 3 of ‘iotjs_https_data_to_write’ makes pointer from integer without a cast [-Werror=int-conversion]
iotjs_https_data_to_write(https_data, read_chunk, callback, onwrite);
^~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:366:6: note: expected ‘const iotjs_jval_t * {aka const unsigned int *}’ but argument is of type ‘iotjs_jval_t {aka unsigned int}’
void iotjs_https_data_to_write(iotjs_https_t* https_data,
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:826:63: error: passing argument 4 of ‘iotjs_https_data_to_write’ makes pointer from integer without a cast [-Werror=int-conversion]
iotjs_https_data_to_write(https_data, read_chunk, callback, onwrite);
^~~~~~~
/home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:366:6: note: expected ‘const iotjs_jval_t * {aka const unsigned int *}’ but argument is of type ‘iotjs_jval_t {aka unsigned int}’
void iotjs_https_data_to_write(iotjs_https_t* https_data,
^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
CMakeFiles/libiotjs.dir/build.make:695: polecenia dla obiektu 'CMakeFiles/libiotjs.dir/src/modules/iotjs_module_https.c.o' nie powiodły się
make[2]: *** [CMakeFiles/libiotjs.dir/src/modules/iotjs_module_https.c.o] Błąd 1
make[2]: Opuszczenie katalogu '/home/tosyu/Projects/iotjs/build/x86_64-linux/debug'
CMakeFiles/Makefile2:144: polecenia dla obiektu 'CMakeFiles/libiotjs.dir/all' nie powiodły się
make[1]: *** [CMakeFiles/libiotjs.dir/all] Błąd 2
make[1]: Opuszczenie katalogu '/home/tosyu/Projects/iotjs/build/x86_64-linux/debug'
Makefile:127: polecenia dla obiektu 'all' nie powiodły się
make: *** [all] Błąd 2
make: Opuszczenie katalogu '/home/tosyu/Projects/iotjs/build/x86_64-linux/debug'
[Failed - 2] make -C /home/tosyu/Projects/iotjs/build/x86_64-linux/debug -j
[Failed - 1] ./tools/build.py --buildtype=debug --iotjs-include-module=adc,ble,dgram,gpio,i2c,pwm,spi,uart
42%] Building C object CMakeFiles/libiotjs.dir/src/modules/iotjs_module_https.c.o /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘iotjs_https_create’: /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:72:45: error: passing argument 1 of ‘jerry_acquire_value’ makes integer from pointer without a cast [-Werror=int-conversion] _this->jthis_native = jerry_acquire_value(jthis); ^~~~~ In file included from /home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript.h:19:0, from /home/tosyu/Projects/iotjs/src/iotjs_binding.h:20, from /home/tosyu/Projects/iotjs/src/iotjs_def.h:171, from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.h:19, from /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:16: /home/tosyu/Projects/iotjs/deps/jerry/jerry-core/include/jerryscript-core.h:344:15: note: expected ‘jerry_value_t {aka unsigned int}’ but argument is of type ‘const iotjs_jval_t {aka const unsigned int }’ jerry_value_t jerry_acquire_value (jerry_value_t value); ^
~~~~~~ /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c: In function ‘iotjs_https_jthis_from_https’: /home/tosyu/Projects/iotjs/src/modules/iotjs_module_https.c:296:15: error: return makes pointer from integer without a cast [-Werror=int-conversion] return _this->jthis_native;