mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-35632: HandlerSocket uses deprecated auto_ptr
Let us suppress the deprecation warnings more specifically.
This fixes up commit d76f5774fe
This commit is contained in:
parent
965e65d6bb
commit
9a25f2a5bb
3 changed files with 10 additions and 2 deletions
|
@ -6,8 +6,6 @@ IF(WIN32 OR WITHOUT_SERVER)
|
||||||
RETURN()
|
RETURN()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-deprecated-declarations")
|
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(libhsclient)
|
INCLUDE_DIRECTORIES(libhsclient)
|
||||||
|
|
||||||
# Handlersocket client library. We do not distribute it,
|
# Handlersocket client library. We do not distribute it,
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
#ifndef DENA_DATABASE_HPP
|
#ifndef DENA_DATABASE_HPP
|
||||||
#define DENA_DATABASE_HPP
|
#define DENA_DATABASE_HPP
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
/* auto_ptr is deprecated */
|
||||||
|
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -19,6 +19,11 @@
|
||||||
#include "string_ref.hpp"
|
#include "string_ref.hpp"
|
||||||
#include "string_buffer.hpp"
|
#include "string_buffer.hpp"
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
/* auto_ptr is deprecated */
|
||||||
|
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace dena {
|
namespace dena {
|
||||||
|
|
||||||
struct hstcpcli_filter {
|
struct hstcpcli_filter {
|
||||||
|
|
Loading…
Reference in a new issue