[ZBX-8796] get_process_info_by_thread() arguments have the same names as global variables Created: 2014 Sep 19  Updated: 2017 May 30  Resolved: 2014 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Igors Homjakovs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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;


 Comments   
Comment by Igors Homjakovs (Inactive) [ 2014 Sep 19 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBXNEXT-101 r48897

Comment by Igors Homjakovs (Inactive) [ 2014 Sep 19 ]

Fixed in 2.5.0(trunk) r49182.

Generated at Tue Apr 16 23:15:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.