cpu plugin: In cpu.c the variable temp is not used
authorManuel Luis SanmartĂ­n Rozada <manuel.luis@gmail.com>
Fri, 3 Sep 2010 09:23:17 +0000 (11:23 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 3 Sep 2010 09:23:17 +0000 (11:23 +0200)
cc1: warnings being treated as errors
cpu.c: In function 'cpu_read':
cpu.c:566: warning: unused variable 'temp'

src/cpu.c

index f89882a..306d2e2 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -563,7 +563,6 @@ static int cpu_read (void)
        u_longlong_t *cpu_total = NULL;
        perfstat_id_t id;
        perfstat_cpu_t *pcpu;
-       u_longlong_t *temp;
        int numcpu;
        int i;