]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix possible clang compile error in AARCH
authoryuncang123 <135211779+yuncang123@users.noreply.github.com>
Sat, 14 Sep 2024 18:03:01 +0000 (02:03 +0800)
committerStéphane Graber <stgraber@stgraber.org>
Mon, 16 Sep 2024 15:52:25 +0000 (17:52 +0200)
Signed-off-by: yuncang123 <135211779+yuncang123@users.noreply.github.com>
meson.build

index 54bbea0d5a912d52cf2eefa50182a679d9cd91e0..91568ff3fbbc369c0607c5fce154d00207201ad4 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)