fix issues pointed out in 2.5.5 sanity checks
comments copied from #3238 (closed)
couple unused warnings reported on freebsd-13.0-amd64 when running distcheck:
18:49:50 --- run_unittests-interval_timer_unittest.o ---
18:49:50 ../../../../../../src/lib/asiolink/tests/interval_timer_unittest.cc:55:28: warning: private field 'test_obj_' is not used [-Wunused-private-field]
18:49:50 IntervalTimerTest* test_obj_;
18:49:50 ^
18:49:50 ../../../../../../src/lib/asiolink/tests/interval_timer_unittest.cc:141:28: warning: private field 'test_obj_' is not used [-Wunused-private-field]
18:49:50 IntervalTimerTest* test_obj_;
18:49:50 ^
18:49:50 2 warnings generated.
18:49:50 CXX run_unittests-tls_listener_unittests.o
18:49:50 ../../../../../../src/lib/tcp/tests/tls_listener_unittests.cc:38:12: warning: unused variable 'REQUEST_TIMEOUT' [-Wunused-const-variable]
18:49:50 const long REQUEST_TIMEOUT = 10000;
18:49:50 ^
18:49:50 ../../../../../../src/lib/tcp/tests/tls_listener_unittests.cc:42:12: warning: unused variable 'SHORT_REQUEST_TIMEOUT' [-Wunused-const-variable]
18:49:50 const long SHORT_REQUEST_TIMEOUT = 200;
18:49:50 ^
18:49:50 2 warnings generated.
18:49:50 --- run_unittests-tcp_listener_unittests.o ---
18:49:50 ../../../../../../src/lib/tcp/tests/tcp_listener_unittests.cc:43:12: warning: unused variable 'REQUEST_TIMEOUT' [-Wunused-const-variable]
18:49:50 const long REQUEST_TIMEOUT = 10000;
18:49:50 ^
18:49:50 ../../../../../../src/lib/tcp/tests/tcp_listener_unittests.cc:47:12: warning: unused variable 'SHORT_REQUEST_TIMEOUT' [-Wunused-const-variable]
18:49:50 const long SHORT_REQUEST_TIMEOUT = 200;
18:49:50 ^
18:49:50 2 warnings generated.
18:49:50 --- run_unittests ---
18:49:50 CXX libkea_dhcpsrv_la-ncr_generator.lo
18:49:50 --- libkea_dhcpsrv_la-mysql_lease_mgr.lo ---
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_lease_mgr.cc:89:14: warning: unused variable 'HOSTNAME_MAX_LEN' [-Wunused-const-variable]
18:49:50 const size_t HOSTNAME_MAX_LEN = 255;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_lease_mgr.cc:95:14: warning: unused variable 'ADDRESS6_TEXT_MAX_LEN' [-Wunused-const-variable]
18:49:50 const size_t ADDRESS6_TEXT_MAX_LEN = 39;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_lease_mgr.cc:98:14: warning: unused variable 'USER_CONTEXT_MAX_LEN' [-Wunused-const-variable]
18:49:50 const size_t USER_CONTEXT_MAX_LEN = 8192;
18:49:50 ^
18:49:50 3 warnings generated.
18:49:50 --- libkea_dhcpsrv_la-mysql_host_data_source.lo ---
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1803:25: warning: unused variable 'OPTION_ID_COL' [-Wunused-const-variable]
18:49:50 static const size_t OPTION_ID_COL = 0;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1804:25: warning: unused variable 'CODE_COL' [-Wunused-const-variable]
18:49:50 static const size_t CODE_COL = 1;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1805:25: warning: unused variable 'VALUE_COL' [-Wunused-const-variable]
18:49:50 static const size_t VALUE_COL = 2;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1806:25: warning: unused variable 'FORMATTED_VALUE_COL' [-Wunused-const-variable]
18:49:50 static const size_t FORMATTED_VALUE_COL = 3;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1807:25: warning: unused variable 'SPACE_COL' [-Wunused-const-variable]
18:49:50 static const size_t SPACE_COL = 4;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1808:25: warning: unused variable 'PERSISTENT_COL' [-Wunused-const-variable]
18:49:50 static const size_t PERSISTENT_COL = 5;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1809:25: warning: unused variable 'CANCELLED_COL' [-Wunused-const-variable]
18:49:50 static const size_t CANCELLED_COL = 6;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1810:25: warning: unused variable 'USER_CONTEXT_COL' [-Wunused-const-variable]
18:49:50 static const size_t USER_CONTEXT_COL = 7;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1811:25: warning: unused variable 'DHCP_SUBNET_ID_COL' [-Wunused-const-variable]
18:49:50 static const size_t DHCP_SUBNET_ID_COL = 8;
18:49:50 ^
18:49:50 ../../../../../src/lib/dhcpsrv/mysql_host_data_source.cc:1812:25: warning: unused variable 'HOST_ID_COL' [-Wunused-const-variable]
18:49:50 static const size_t HOST_ID_COL = 9;
18:49:50 ^
18:49:50 10 warnings generated.
on ubuntu-20.04-amd64 and ubuntu-22.04-amd64 running distcheck:
19:19:17 make[6]: Entering directory '/home/ubuntu/workspace/kea-dev/ut-distcheck/kea-2.5.5-git/_build/sub/src/lib/mysql'
19:19:17 CXX mysql_connection.lo
19:19:17 CXX mysql_binding.lo
19:19:17 ../../../../../src/lib/mysql/mysql_connection.cc: In member function ‘void isc::db::MySqlConnection::openDatabase()’:
19:19:17 ../../../../../src/lib/mysql/mysql_connection.cc:231:34: warning: ‘bool mysql_ssl_set(MYSQL*, const char*, const char*, const char*, const char*, const char*)’ is deprecated: Use mysql_options() instead. [-Wdeprecated-declarations]
19:19:17 231 | cipher_list);
19:19:17 | ^
19:19:17 In file included from ../../../../../src/lib/mysql/mysql_constants.h:10,
19:19:17 from ../../../../../src/lib/mysql/mysql_binding.h:18,
19:19:17 from ../../../../../src/lib/mysql/mysql_connection.h:15,
19:19:17 from ../../../../../src/lib/mysql/mysql_connection.cc:12:
19:19:17 /usr/include/mysql/mysql.h:464:1: note: declared here
19:19:17 464 | mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca,
19:19:17 | ^~~~~~~~~~~~~
19:19:17 ../../../../../src/lib/mysql/mysql_connection.cc:231:34: warning: ‘bool mysql_ssl_set(MYSQL*, const char*, const char*, const char*, const char*, const char*)’ is deprecated: Use mysql_options() instead. [-Wdeprecated-declarations]
19:19:17 231 | cipher_list);
19:19:17 | ^
19:19:17 In file included from ../../../../../src/lib/mysql/mysql_constants.h:10,
19:19:17 from ../../../../../src/lib/mysql/mysql_binding.h:18,
19:19:17 from ../../../../../src/lib/mysql/mysql_connection.h:15,
19:19:17 from ../../../../../src/lib/mysql/mysql_connection.cc:12:
19:19:17 /usr/include/mysql/mysql.h:464:1: note: declared here
19:19:17 464 | mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca,
19:19:17 | ^~~~~~~~~~~~~
19:19:17
19:19:17 [----------] 20 tests from MySqlConnectionTest
19:19:17 [ RUN ] MySqlConnectionTest.select
19:19:17 WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
19:19:17 [ OK ] MySqlConnectionTest.select (861 ms)
19:19:17 [ RUN ] MySqlConnectionTest.selectNullInteger
19:19:17 WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
running ut-extended on debian-11-aarch64 and debian-12-aarch64:
16:06:36 /bin/bash ../../../libtool --tag=CXX --mode=compile ccache c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib -DOS_LINUX -I../../.. -I../../.. -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -g3 -ggdb -O0 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -MT simple_parser.lo -MD -MP -MF .deps/simple_parser.Tpo -c -o simple_parser.lo simple_parser.cc
16:06:36 libtool: compile: ccache c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib -DOS_LINUX -I../../.. -I../../.. -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -g3 -ggdb -O0 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -MT server_tag.lo -MD -MP -MF .deps/server_tag.Tpo -c server_tag.cc -fPIC -DPIC -o .libs/server_tag.o
16:06:36 libtool: compile: ccache c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib -DOS_LINUX -I../../.. -I../../.. -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -g3 -ggdb -O0 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -MT simple_parser.lo -MD -MP -MF .deps/simple_parser.Tpo -c simple_parser.cc -fPIC -DPIC -o .libs/simple_parser.o
16:06:37 data.cc: In member function ‘virtual void isc::data::StringElement::toJSON(std::ostream&) const’:
16:06:37 data.cc:905:21: warning: comparison is always true due to limited range of data type [-Wtype-limits]
16:06:37 905 | if (((c >= 0) && (c < 0x20)) || (c < 0) || (c >= 0x7f)) {
16:06:37 | ~~^~~~
16:06:37 data.cc:905:48: warning: comparison is always false due to limited range of data type [-Wtype-limits]
16:06:37 905 | if (((c >= 0) && (c < 0x20)) || (c < 0) || (c >= 0x7f)) {
16:06:37 |
16:08:33 /bin/bash ../../../libtool --tag=CXX --mode=compile ccache c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib -DOS_LINUX -I../../.. -I../../.. -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -g3 -ggdb -O0 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -MT libkea_http_la-http_message_parser_base.lo -MD -MP -MF .deps/libkea_http_la-http_message_parser_base.Tpo -c -o libkea_http_la-http_message_parser_base.lo `test -f 'http_message_parser_base.cc' || echo './'`http_message_parser_base.cc
16:08:33 libtool: compile: ccache c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib -DOS_LINUX -I../../.. -I../../.. -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -g3 -ggdb -O0 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -MT libkea_http_la-http_message_parser_base.lo -MD -MP -MF .deps/libkea_http_la-http_message_parser_base.Tpo -c http_message_parser_base.cc -fPIC -DPIC -o .libs/libkea_http_la-http_message_parser_base.o
16:08:33 http_message_parser_base.cc: In member function ‘bool isc::http::HttpMessageParserBase::isChar(char) const’:
16:08:33 http_message_parser_base.cc:266:15: warning: comparison is always true due to limited range of data type [-Wtype-limits]
16:08:33 266 | return (c >= 0);
16:08:33 | ~~^~~~
16:08:33 http_message_parser_base.cc: In member function ‘bool isc::http::HttpMessageParserBase::isCtl(char) const’:
16:08:33 http_message_parser_base.cc:271:17: warning: comparison is always true due to limited range of data type [-Wtype-limits]
16:08:33 271 | return (((c >= 0) && (c <= 31)) || (c == 127));
16:08:33 |
On macOS 14.2.1 got a build problem during sanity checks:
mysql_legal_log.cc:33:1: error: implicit instantiation of undefined template 'boost::array<isc::db::TaggedStatement, 1>'
tagged_statements = { {
^
/usr/local/include/boost/lexical_cast/detail/converter_lexical.hpp:56:11: note: template is declared here
class array;
^
1 error generated.
Fixed by adding an explicit include of boost/array.hpp
compilation erro on macOS:
mysql_connection.cc:230:9: error: use of undeclared identifier 'mysql_ssl_set'
mysql_ssl_set(mysql_, key_file, cert_file, ca_file, ca_dir,
^
1 error generated.
make[5]: *** [mysql_connection.lo] Error 1
fix:
< mysql_ssl_set(mysql_, key_file, cert_file, ca_file, ca_dir,
< cipher_list);
---
> mysql_options(mysql_, MYSQL_OPT_SSL_KEY, key_file);
> mysql_options(mysql_, MYSQL_OPT_SSL_CERT, cert_file);
> mysql_options(mysql_, MYSQL_OPT_SSL_CA, ca_file);
> mysql_options(mysql_, MYSQL_OPT_SSL_CAPATH, ca_dir);
> mysql_options(mysql_, MYSQL_OPT_SSL_CIPHER, cipher_list); cipher_list);
also minor:
../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
./mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_impl.cc:9:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:535:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_impl.cc:208:11: note: in instantiation of function template specialization 'isc::db::MySqlConnection::insertQuery<int>' requested here
conn_.insertQuery(index, in_bindings);
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_impl.cc:9:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:460:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_impl.cc:247:15: note: in instantiation of function template specialization 'isc::db::MySqlConnection::selectQuery<int>' requested here
conn_.selectQuery(index, in_bindings, out_bindings,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_callouts.cc:16:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
./mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp6.cc:10:
In file included from ./mysql_cb_dhcp6.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
./mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp4.cc:9:
In file included from ./mysql_cb_dhcp4.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
./mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp6.cc:10:
In file included from ./mysql_cb_dhcp6.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_dhcp6.cc:251:19: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<isc::dhcp::MySqlConfigBackendDHCPv6Impl::StatementIndex>' requested here
if (conn_.updateDeleteQuery(MySqlConfigBackendDHCPv6Impl::UPDATE_GLOBAL_PARAMETER6,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp6.cc:10:
In file included from ./mysql_cb_dhcp6.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:535:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_dhcp6.cc:257:19: note: in instantiation of function template specialization 'isc::db::MySqlConnection::insertQuery<isc::dhcp::MySqlConfigBackendDHCPv6Impl::StatementIndex>' requested here
conn_.insertQuery(MySqlConfigBackendDHCPv6Impl::INSERT_GLOBAL_PARAMETER6,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp6.cc:10:
In file included from ./mysql_cb_dhcp6.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:460:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_dhcp6.cc:407:15: note: in instantiation of function template specialization 'isc::db::MySqlConnection::selectQuery<isc::dhcp::MySqlConfigBackendDHCPv6Impl::StatementIndex>' requested here
conn_.selectQuery(index, in_bindings, out_bindings,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp4.cc:9:
In file included from ./mysql_cb_dhcp4.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_dhcp4.cc:242:19: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<isc::dhcp::MySqlConfigBackendDHCPv4Impl::StatementIndex>' requested here
if (conn_.updateDeleteQuery(MySqlConfigBackendDHCPv4Impl::UPDATE_GLOBAL_PARAMETER4,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp4.cc:9:
In file included from ./mysql_cb_dhcp4.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:535:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_dhcp4.cc:248:19: note: in instantiation of function template specialization 'isc::db::MySqlConnection::insertQuery<isc::dhcp::MySqlConfigBackendDHCPv4Impl::StatementIndex>' requested here
conn_.insertQuery(MySqlConfigBackendDHCPv4Impl::INSERT_GLOBAL_PARAMETER4,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp4.cc:9:
In file included from ./mysql_cb_dhcp4.h:10:
In file included from ./mysql_cb_impl.h:25:
../../../../src/lib/mysql/mysql_connection.h:460:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
status = mysql_stmt_bind_param(getStatement(index),
^
mysql_cb_dhcp4.cc:371:15: note: in instantiation of function template specialization 'isc::db::MySqlConnection::selectQuery<isc::dhcp::MySqlConfigBackendDHCPv4Impl::StatementIndex>' requested here
conn_.selectQuery(index, in_bindings, out_bindings,
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_impl_unittest.cc:8:
In file included from ../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:25:
../../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
1 warning generated.
In file included from mysql_cb_dhcp4_mgr_unittest.cc:10:
In file included from ../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_dhcp4.h:10:
In file included from ../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:25:
../../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp6_mgr_unittest.cc:10:
In file included from ../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.h:10:
In file included from ../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:25:
../../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
1 warning generated.
1 warning generated.
In file included from mysql_cb_dhcp4_unittest.cc:15:
In file included from ../../../../../src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h:11:
../../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
In file included from mysql_cb_dhcp6_unittest.cc:15:
In file included from ../../../../../src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h:11:
../../../../../src/lib/mysql/mysql_connection.h:579:22: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(getStatement(index),
^
../../../../../src/hooks/dhcp/mysql_cb/mysql_cb_impl.h:294:23: note: in instantiation of function template specialization 'isc::db::MySqlConnection::updateDeleteQuery<int>' requested here
return (conn_.updateDeleteQuery(index, in_bindings));
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
1 warning generated.
mysql_legal_log.cc:382:18: warning: 'mysql_stmt_bind_param' is deprecated: Use mysql_stmt_bind_named_param() instead. [-Wdeprecated-declarations]
int status = mysql_stmt_bind_param(ctx->conn_.getStatement(INSERT_LOG),
^
/usr/local/Cellar/mysql/8.3.0/include/mysql/mysql.h:764:3: note: 'mysql_stmt_bind_param' has been explicitly marked deprecated here
[[deprecated("Use mysql_stmt_bind_named_param() instead.")]]
^
1 warning generated.