jow- / ucode

JavaScript-like language with optional templating
ISC License
90 stars 30 forks source link

vm: Handle return value of write() #179

Closed hauke closed 11 months ago

hauke commented 11 months ago

Fix a compile error when compiling against glibc: vm.c: In function 'uc_vm_signal_raise': vm.c:3161:9: error: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Werror=unused-result] 3161 | write(vm->signal.sigpipe[1], &signum, sizeof(signum)); | ^~~~~~~~~~~~~

jow- commented 11 months ago

Superseded by a69b5c8c416342a7855da19dfdc264a078f30848