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/manifest | 2 +- libmysqlclient/mysql/buildfile | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libmysqlclient/manifest b/libmysqlclient/manifest index 55b3bb1..8e0e64f 100644 --- a/libmysqlclient/manifest +++ b/libmysqlclient/manifest @@ -3,7 +3,7 @@ name: libmysqlclient # Note: remember to update doc-url below! # -version: 8.0.15+3 +version: 8.0.15+4 project: mysql summary: MySQL C API client library 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