Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10107

compilation warnings: call to function without a real prototype, take 2

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0alpha4
    • Fix Version/s: 3.0.0alpha5
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      trunk r56797, gcc 4.8.1

      Description

      similar to ZBX-9814

      stats.c: In function 'init_collector_data':
      stats.c:196:2: warning: call to function 'zbx_procstat_init' without a real prototype [-Wunprototyped-calls]
        zbx_procstat_init(&collector->procstat);
        ^
      In file included from stats.h:38:0,
                       from stats.c:21:
      procstat.h:49:6: note: 'zbx_procstat_init' was declared here
       void zbx_procstat_init();
            ^
      stats.c: In function 'free_collector_data':
      stats.c:232:2: warning: call to function 'zbx_procstat_destroy' without a real prototype [-Wunprototyped-calls]
        zbx_procstat_destroy(&collector->procstat);
        ^
      In file included from stats.h:38:0,
                       from stats.c:21:
      procstat.h:50:6: note: 'zbx_procstat_destroy' was declared here
       void zbx_procstat_destroy();
            ^
      stats.c: In function 'init_collector_data':
      stats.c:196:2: warning: call to function 'zbx_procstat_init' without a real prototype [-Wunprototyped-calls]
        zbx_procstat_init(&collector->procstat);
        ^
      In file included from stats.h:38:0,
                       from stats.c:21:
      procstat.h:49:6: note: 'zbx_procstat_init' was declared here
       void zbx_procstat_init();
            ^
      stats.c: In function 'free_collector_data':
      stats.c:232:2: warning: call to function 'zbx_procstat_destroy' without a real prototype [-Wunprototyped-calls]
        zbx_procstat_destroy(&collector->procstat);
        ^
      In file included from stats.h:38:0,
                       from stats.c:21:
      procstat.h:50:6: note: 'zbx_procstat_destroy' was declared here
       void zbx_procstat_destroy();
            ^
      

      it also looks like stats.c is compiled twice - once for agent, once for agentd. we might want to ignore that until agent is removed for 3.2

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              richlv richlv
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: