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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0alpha1
    • Fix Version/s: 3.2.0beta1, 3.2.0beta2
    • Component/s: Agent (G), Proxy (P), Server (S)
    • Environment:
      $ clang -v
      Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
      Target: x86_64-pc-linux-gnu

      Description

      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
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: