From 6091b92b86554fd2aacaacd126b44f208d482336 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 9 Oct 2019 12:47:03 +0300 Subject: Release version 8.0.15+4 Disable 'POSIX name for this item is deprecated' warning issued by Clang on Windows --- libmysqlclient/mysql/buildfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libmysqlclient/mysql/buildfile') diff --git a/libmysqlclient/mysql/buildfile b/libmysqlclient/mysql/buildfile index 85690ae..3aaa9f0 100644 --- a/libmysqlclient/mysql/buildfile +++ b/libmysqlclient/mysql/buildfile @@ -15,8 +15,9 @@ windows = ($tclass == 'windows') msvc_runtime = ($tsys == 'win32-msvc') -gcc = ($c.class == 'gcc') -msvc = ($c.class == 'msvc') +gcc = ($c.class == 'gcc') +msvc = ($c.class == 'msvc') +clang_msvc = ($c.id == 'clang' && $msvc_runtime) # Windows-specific utilities. # @@ -200,6 +201,11 @@ else libmysql/authentication_win/ cc.poptions += -DSECURITY_WIN32 } +# Disable the 'POSIX name for this item is deprecated' warnings. +# +if $clang_msvc + cc.coptions += -Wno-deprecated-declarations + if $msvc { # Disable warnings that pop up with /W3. -- cgit v1.1