[ZBX-9814] compilation warnings (call to function without a real prototype) Created: 2015 Aug 25  Updated: 2017 May 30  Resolved: 2015 Aug 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 2.5.0
Fix Version/s: 3.0.0alpha2

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

trunk r55129
gcc 4.8.1



 Description   
checks_internal.c: In function ‘get_value_internal’:
checks_internal.c:98:3: warning: call to function ‘DCget_item_count’ without a real prototype [-Wunprototyped-calls]
   SET_UI64_RESULT(result, DCget_item_count(0));
   ^
In file included from checks_internal.h:24:0,
                 from checks_internal.c:21:
../../../include/dbcache.h:380:5: note: ‘DCget_item_count’ was declared here
 int DCget_item_count();
     ^
checks_internal.c:108:3: warning: call to function ‘DCget_item_unsupported_count’ without a real prototype [-Wunprototyped-calls]
   SET_UI64_RESULT(result, DCget_item_unsupported_count(0));
   ^
In file included from checks_internal.h:24:0,
                 from checks_internal.c:21:
../../../include/dbcache.h:381:5: note: ‘DCget_item_unsupported_count’ was declared here
 int DCget_item_unsupported_count();
     ^
checks_internal.c:264:4: warning: call to function ‘DCget_item_count’ without a real prototype [-Wunprototyped-calls]
    SET_UI64_RESULT(result, DCget_item_count(item->host.hostid));
    ^
In file included from checks_internal.h:24:0,
                 from checks_internal.c:21:
../../../include/dbcache.h:380:5: note: ‘DCget_item_count’ was declared here
 int DCget_item_count();
     ^
checks_internal.c:275:4: warning: call to function ‘DCget_item_unsupported_count’ without a real prototype [-Wunprototyped-calls]
    SET_UI64_RESULT(result, DCget_item_unsupported_count(item->host.hostid));
    ^
In file included from checks_internal.h:24:0,
                 from checks_internal.c:21:
../../../include/dbcache.h:381:5: note: ‘DCget_item_unsupported_count’ was declared here
 int DCget_item_unsupported_count();
     ^


 Comments   
Comment by richlv [ 2015 Aug 25 ]

these look suspiciously related to ZBXNEXT-2760

Comment by Andris Zeila [ 2015 Aug 25 ]

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

Comment by Andris Zeila [ 2015 Aug 25 ]

Released in:

  • pre-3.0.0alpha2 r55136
Generated at Sat Apr 27 01:22:14 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.