[ZBX-5572] compilation warnings Created: 2012 Sep 11  Updated: 2017 May 30  Resolved: 2012 Oct 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: compilation, gcc, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

gcc 4.6.2
2.0 branch rev 30194



 Description   

this might be a specific gcc version in a specific configuration, but this is the default - i haven't modified warning flags.

host.c: In function 'DBcopy_template_elements':
host.c:2489:4: warning: 'applicationid' may be used uninitialized in this function [-Wuninitialized]
host.c:2444:16: note: 'applicationid' was declared here
lld.c: In function 'DBlld_process_discovery_rule':
lld.c:785:4: warning: 'error_esc' may be used uninitialized in this function [-Wuninitialized]
lld.c:666:24: note: 'error_esc' was declared here
housekeeper.c: In function 'main_housekeeper_loop':
housekeeper.c:315:3: warning: call to function 'housekeeping_cleanup' without a real prototype [-Wunprototyped-calls]
housekeeper.c:45:12: note: 'housekeeping_cleanup' was declared here
nodehistory.c: In function 'node_history':
nodehistory.c:460:14: warning: 'clock' may be used uninitialized in this function [-Wuninitialized]
nodehistory.c:402:7: note: 'clock' was declared here
nodehistory.c:460:14: warning: 'value_double' may be used uninitialized in this function [-Wuninitialized]
nodehistory.c:403:10: note: 'value_double' was declared here



 Comments   
Comment by Alexander Vladishev [ 2012 Sep 17 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5572

Comment by richlv [ 2012 Sep 19 ]

configure flags used originally :
--enable-server --enable-agent --with-net-snmp --with-libcurl --with-ldap --enable-ipv6 --with-ssh2 --with-openipmi --with-unixodbc --with-mysql

Comment by dimir [ 2012 Sep 19 ]

Well done.

Comment by Alexander Vladishev [ 2012 Oct 03 ]

Fixed in pre-2.0.4 r30496 and pre-2.1.0 (trunk) r30497.

Generated at Sat May 11 05:46:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.