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

Unused parameter warning when compiling server without libxml2

XMLWordPrintable

    • Sprint 47, Dec 2018
    • 0.125

      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.

            andris Andris Mednis
            cyclone Glebs Ivanovskis
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: