[ZBX-15378] Unused parameter warning when compiling server without libxml2 Created: 2018 Dec 27  Updated: 2024 Apr 10  Resolved: 2019 Jan 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.2.0alpha3
Fix Version/s: 4.2.0alpha3, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Glebs Ivanovskis Assignee: Andris Mednis
Resolution: Fixed Votes: 0
Labels: codequality
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBXNEXT-4724 Advanced preprocessing: validation an... Closed
Team: Team A
Sprint: Sprint 47, Dec 2018
Story Points: 0.125

 Description   

Steps to reproduce:

  1. $ ./bootstrap.sh
  2. $ CFLAGS='-g -O2 -Wall -Wextra' ./configure --enable-agent --enable-server --with-postgresql -q
  3. $ make -s -j 8

Result:

Making all in preprocessor
item_preproc.c: In function ‘item_preproc_get_error_from_xml’:
item_preproc.c:1262:99: warning: unused parameter ‘errmsg’ [-Wunused-parameter]
 static int item_preproc_get_error_from_xml(const zbx_variant_t *value, const char *params, char **errmsg,
                                                                                                   ^~~~~~

Expected:
No warning.



 Comments   
Comment by Andris Mednis [ 2018 Dec 27 ]

Thanks, Gleb

Comment by Andris Mednis [ 2018 Dec 28 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-15378

Comment by Andrejs Sitals (Inactive) [ 2019 Jan 02 ]

Succesfully tested.

Comment by Andris Mednis [ 2019 Jan 02 ]

Available in versions:

  • pre-4.2.0alpha3 r88164
Generated at Fri Apr 26 12:48:32 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.