]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix possible clang compile error in AARCH 4481/head
authoryuncang123 <135211779+yuncang123@users.noreply.github.com>
Sat, 14 Sep 2024 18:03:01 +0000 (02:03 +0800)
committerGitHub <noreply@github.com>
Sat, 14 Sep 2024 18:03:01 +0000 (02:03 +0800)
Signed-off-by: yuncang123 <135211779+yuncang123@users.noreply.github.com>
meson.build

index e10b07c8bc1ecdc9539a4b0d807e134f4bb43d46..9172f986771a515a22feb66432a1ec6bb4614578 100644 (file)
@@ -503,7 +503,11 @@ int func (void) {
 }
 '''
 
-have_func_strerror_r_char_p = cc.compiles(code, name : 'strerror_r() returns char *')
+    if cc.get_id() == 'clang'
+        have_func_strerror_r_char_p = cc.compiles(code, args : '-Wno-error=unused-command-line-argument', name : 'strerror_r() returns char *')
+    else
+        have_func_strerror_r_char_p = cc.compiles(code, name : 'strerror_r() returns char *')
+    endif
 endif
 
 srcconf.set10('STRERROR_R_CHAR_P', have_func_strerror_r_char_p)