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

get_process_info_by_thread() arguments have the same names as global variables

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • None
    • Agent (G), Proxy (P), Server (S)
    • None

      get_process_info_by_thread() arguments have the same names as global variables in src/zabbix_agent/zabbix_agentd.c:

      zabbix_agentd.c: In function 'get_process_info_by_thread':
      zabbix_agentd.c:215:36: warning: declaration of 'server_num' shadows a global declaration [-Wshadow]
       int get_process_info_by_thread(int server_num, unsigned char *process_type, int *process_num)
                                          ^
      zabbix_agentd.c:180:22: warning: shadowed declaration is here [-Wshadow]
       ZBX_THREAD_LOCAL int server_num   = 0;
                            ^
      zabbix_agentd.c:215:63: warning: declaration of 'process_type' shadows a global declaration [-Wshadow]
       int get_process_info_by_thread(int server_num, unsigned char *process_type, int *process_num)
                                                                     ^
      zabbix_agentd.c:178:32: warning: shadowed declaration is here [-Wshadow]
       ZBX_THREAD_LOCAL unsigned char process_type = 255; /* ZBX_PROCESS_TYPE_UNKNOWN */
                                      ^
      zabbix_agentd.c:215:82: warning: declaration of 'process_num' shadows a global declaration [-Wshadow]
       int get_process_info_by_thread(int server_num, unsigned char *process_type, int *process_num)
                                                                                        ^
      zabbix_agentd.c:179:22: warning: shadowed declaration is here [-Wshadow]
       ZBX_THREAD_LOCAL int process_num;
      

            Unassigned Unassigned
            igorsh Igors Homjakovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: