pcp
[Top] [All Lists]

compilation warnings

To: PCP <pcp@xxxxxxxxxxx>
Subject: compilation warnings
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon, 15 Dec 2014 17:15:44 +1100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
Just a gentle reminder, that zero compilation warnings is the PCP goal.

These ones seem to have crept in recently (and yes I know one is in papi.h, not 
the PCP code, but even so, someone should be fixing it) ...

=== linux_proc ===
...
cgroups.c: In function âread_blkio_devices_statsâ:
cgroups.c:744:16: warning: variable âresultâ set but not used 
[-Wunused-but-set-variable]
     __uint64_t result = 0;
                ^

papi.c: In function âpapi_internal_initâ:
papi.c:661:5: warning: statement with no effect [-Wunused-value]
     for (component_id; component_id < number_of_components; component_id++) {
     ^
papi.c:667:2: warning: pointer targets in passing argument 1 of 
âPAPI_enum_cmp_eventâ differ in signedness [-Wpointer-sign]
  sts = PAPI_enum_cmp_event (&native, PAPI_ENUM_FIRST, component_id);
  ^
In file included from papi.c:21:0:
/usr/include/papi.h:1030:10: note: expected âint *â but argument is of type 
âunsigned int *â
    int   PAPI_enum_cmp_event(int *EventCode, int modifier, int cidx); /**< 
return the event code for the next available component event */
          ^

<Prev in Thread] Current Thread [Next in Thread>