-
Problem report
-
Resolution: Fixed
-
Minor
-
3.0.24rc1, 4.0.2rc1, 4.2.0alpha1
-
None
-
Sprint 46, Nov 2018, Sprint 47, Dec 2018
-
0.25
Steps to reproduce:
gcc 8.2.1
net-snmp 5.8
Compile Zabbix.
Result:
checks_snmp.c: In function 'zbx_snmp_open_session': checks_snmp.c:483:2: warning: 'remote_port' is deprecated [-Wdeprecated-declarations] session.remote_port = item->interface.port; ^~~~~~~ In file included from /usr/include/net-snmp/definitions.h:22, from /usr/include/net-snmp/net-snmp-includes.h:67, from checks_snmp.c:26: /usr/include/net-snmp/types.h:345:21: note: declared here u_short remote_port NETSNMP_ATTRIBUTE_DEPRECATED; ^~~~~~~~~~~
Expected:
No deprecation messages.