Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15378

Unused parameter warning when compiling server without libxml2

    Details

    • 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andris Andris Mednis
                Reporter:
                cyclone Glebs Ivanovskis
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: