-
Incident report
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
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;