From: Marco Schlumpp Date: Tue, 18 Apr 2023 12:54:56 +0000 (+0200) Subject: Properly cast the system call input and outputs X-Git-Tag: RELEASE-0.13.0~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e69706237d252cd7fea02a7414cae961bbb6c184;p=unikraft%2Flibs%2Fmusl.git Properly cast the system call input and outputs On clang, this statement caused compiler errors instead of only warnings. Signed-off-by: Marco Schlumpp Reviewed-by: Eduard Vintilă Reviewed-by: Sergiu Moga Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #41 --- diff --git a/__uk_init_tls.c b/__uk_init_tls.c index 48963d0..01ff96d 100644 --- a/__uk_init_tls.c +++ b/__uk_init_tls.c @@ -135,7 +135,7 @@ static int __uk_init_tp(void *p) * might happen. */ if (uk_thread_current()) { - td->tid = uk_syscall_r_set_tid_address(&td->tid); + td->tid = (int)uk_syscall_r_set_tid_address((long)&td->tid); if (td->tid < 0) td->tid = 0; } else {