warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp]

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 4.4.6
    • Component/s: Agent (G), Proxy (P), Server (S)
    • None
    • Environment:
      Linux, gcc 10, glibc 2.91
    • Sprint 62 (Mar 2020)
    • 0.125

      Every #include of the is causing now warning like below.

      make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/zabbix-4.4.6/x86_64-redhat-linux-gnu-mysql/src/libs/zbxcrypto'
      gcc -DHAVE_CONFIG_H -I. -I../../../../src/libs/zbxcrypto -I../../../include   -I../../../../include -I/usr/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -c -o libzbxcrypto_a-md5.o `test -f 'md5.c' || echo '../../../../src/libs/zbxcrypto/'`md5.c
      In file included from ../../../../include/sysinc.h:268,
                       from ../../../../include/common.h:23,
                       from ../../../../src/libs/zbxcrypto/md5.c:54:
      /usr/include/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp]
         21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
            |  ^~~~~~~
      
      

            Assignee:
            Zabbix Development Team
            Reporter:
            Tomasz Kłoczko
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: