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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent (G), Proxy (P), Server (S)
    • Labels:
      None

      Description

      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;
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: