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

Silence the warnings regarding unused parameters from Linux x86_64 builds

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.0beta1, 3.2.0beta2
    • 3.2.0alpha1
    • Agent (G), Proxy (P), Server (S)
    • $ clang -v
      Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
      Target: x86_64-pc-linux-gnu

      The attached patch fixes warnings regarding unused parameters by removing the parameters where possible or using the new ZBX_UNUSED macro where it's not possible (callbacks to libraries, proxy stub functions, etc.).

      Configuration.

      ./configure --prefix=`pwd`/usr CC=clang CFLAGS="-Wall -Wextra -g" \
      --enable-server --enable-proxy --enable-agent --enable-java --enable-ipv6 \
      --with-mysql --with-jabber --with-libxml2 --with-net-snmp --with-unixodbc \
      --with-ssh2 --with-openipmi --with-ldap --with-libcurl --with-iconv --with-openssl
      

            Unassigned Unassigned
            sandis.neilands Sandis Neilands (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: