Skip to content

Commit b51fdf8

Browse files
committed
CDRIVER-1104 Don't error when adding -pthread on clang
1 parent 34c5c96 commit b51fdf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/autotools/PlatformFlags.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ AS_IF([test "$os_darwin" = "yes"],
66
[AX_CHECK_COMPILE_FLAG([-Wno-cast-align], [CFLAGS="$CFLAGS -Wno-cast-align"])])
77
AS_IF([test "$os_darwin" = "yes"],
88
[AX_CHECK_COMPILE_FLAG([-Wno-unneeded-internal-declaration], [CFLAGS="$CFLAGS -Wno-unneeded-internal-declaration"])])
9+
AS_IF([test "$os_darwin" = "yes"],
10+
[AX_CHECK_COMPILE_FLAG([-Wno-error=unused-command-line-argument], [CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"])])
911
dnl We know there are some cast-align issues on Solaris
1012
AS_IF([test "$os_solaris" = "yes"],
1113
[AX_CHECK_COMPILE_FLAG([-Wno-cast-align], [CFLAGS="$CFLAGS -Wno-cast-align"])])

0 commit comments

Comments
 (0)