5.7 home/laurynas/mysql-server/sql/sql_class.h:2309:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<Transaction_ctx> m_transaction;

Description

On some systems TokuDB build produces

[ 31%] Building CXX object storage/tokudb/CMakeFiles/tokudb.dir/ha_tokudb.cc.o
In file included from
/home/laurynas/mysql-server/storage/tokudb/hatoku_defines.h:36:0,
from
/home/laurynas/mysql-server/storage/tokudb/hatoku_hton.h:29,
from
/home/laurynas/mysql-server/storage/tokudb/ha_tokudb.cc:26:
/home/laurynas/mysql-server/sql/sql_class.h:2309:8: warning:
'template<class> class std::auto_ptr' is deprecated
[-Wdeprecated-declarations]
std::auto_ptr<Transaction_ctx> m_transaction;

which should be disabled: C+11 TokuDB code has no control over C+03
server code, so the warning is non-actionable. There should be either
-Wno-deprecated-declarations, either server headers paths included
through -isystem not -I compiler option, if that works, so that
-Wdeprecated-declarations is still active for Toku code.

Environment

None

Assignee

George Lorch

Reporter

George Lorch

Labels

External issue ID

None

Freshdesk Tickets

None

Affects versions

Priority

Major
Configure