baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

OS X 10.8 clang warnings #315

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From a 10.8 build with clang:

    In file included from psutil/_psutil_osx.c:34:
    /usr/include/mach/shared_memory_server.h:48:2: warning: "<mach/shared_memory_server.h> is deprecated.  Please use <mach/shared_region.h> instead." [-W#warnings]
    #warning "<mach/shared_memory_server.h> is deprecated.  Please use <mach/shared_region.h> instead."
     ^
    psutil/_psutil_osx.c:332:36: warning: format specifies type 'unsigned int' but the argument has type 'vm_address_t' (aka 'unsigned long') [-Wformat]
                sprintf(addr_str, "%016x-%016x", address, address + size);
                                   ~~~~^         ~~~~~~~
                                   %016lx
    psutil/_psutil_osx.c:332:42: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
                sprintf(addr_str, "%016x-%016x", address, address + size);
                                         ~~~~^            ~~~~~~~~~~~~~~
                                         %016lx
    3 warnings generated.

Original issue reported on code.google.com by james....@gmail.com on 14 Aug 2012 at 7:38

GoogleCodeExporter commented 8 years ago
I don't have an OSX 10.8 to test against.
Maybe you can provide a patch?

Original comment by g.rodola on 14 Aug 2012 at 9:34

GoogleCodeExporter commented 8 years ago
Yeah, I'll look into it soon-ish. Getting swamped lately.

Original comment by james....@gmail.com on 11 Sep 2012 at 3:11

GoogleCodeExporter commented 8 years ago
Fixed in r1566.

Original comment by g.rodola on 24 Feb 2013 at 7:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1566 == revision 5a20cccf1977

Original comment by g.rodola on 2 Mar 2013 at 12:12

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 8 Apr 2013 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 11 Apr 2013 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 12 Apr 2013 at 6:21