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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.0alpha5
    • 3.0.0alpha4
    • Agent (G)
    • trunk r56797, gcc 4.8.1

      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

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

              Created:
              Updated:
              Resolved: