Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X 10.8 clang warnings #315

Closed
giampaolo opened this issue May 23, 2014 · 7 comments
Closed

OS X 10.8 clang warnings #315

giampaolo opened this issue May 23, 2014 · 7 comments

Comments

@giampaolo
Copy link
Owner

From james....@gmail.com on August 14, 2012 09:38:56

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, "&#37;016x-&#37;016x", address, address + size);
                                   ~~~~^         ~~~~~~~
                                   &#37;016lx
    psutil/_psutil_osx.c:332:42: warning: format specifies type 'unsigned int' 
but the argument has type 'unsigned long' [-Wformat]
                sprintf(addr_str, "&#37;016x-&#37;016x", address, address + size);
                                         ~~~~^            ~~~~~~~~~~~~~~
                                         &#37;016lx
    3 warnings generated.

Original issue: http://code.google.com/p/psutil/issues/detail?id=315

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on August 14, 2012 02:34:59

I don't have an OSX 10.8 to test against.
Maybe you can provide a patch?

@giampaolo
Copy link
Owner Author

From james....@gmail.com on September 10, 2012 20:11:48

Yeah, I'll look into it soon-ish. Getting swamped lately.

@giampaolo
Copy link
Owner Author

From g.rodola on February 24, 2013 11:45:19

Fixed in r1566 .

Status: FixedInSVN
Labels: OpSys-OSX Milestone-0.6.2

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:12:14

Updated csets after the SVN -> Mercurial migration: r1566 == revision 
5a20cccf1977

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:39

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:26

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant