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/user: compiler warning from the getgrouplist call on darwin{386,amd64} #14700

Closed
rakyll opened this issue Mar 8, 2016 · 1 comment
Closed
Milestone

Comments

@rakyll
Copy link
Contributor

rakyll commented Mar 8, 2016

Seems like getgrouplist is slightly different on darwin.

$ man getgrouplist

GETGROUPLIST(3)          BSD Library Functions Manual          GETGROUPLIST(3)

NAME
     getgrouplist -- calculate partial group access list

LIBRARY
     Standard system libraries.

SYNOPSIS
     #include <unistd.h>

     int
     getgrouplist(const char *name, int basegid, int *groups, int *ngroups);
# os/user
os/user/lookup_unix.go:43:35: warning: passing 'gid_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/unistd.h:653:43: note: passing argument to parameter here
@rakyll rakyll added this to the Go1.7 milestone Mar 8, 2016
@josharian
Copy link
Contributor

Duplicate of #14696?

@bradfitz bradfitz closed this as completed Mar 8, 2016
@golang golang locked and limited conversation to collaborators Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants