-
Notifications
You must be signed in to change notification settings - Fork 18k
os/user: warning building on mac #14696
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
Comments
Ross, can you take a look? I see the same thing on my mac. (To be clear, it's a compiler warning during make.bash, not a fatal error, which is probably why we didn't catch it; C warnings are basically the only warnings that exist and are allowed to spam in a Go build) |
Taking a look now. For the future, should the build bots (or at least, try bots) error on C warnings? |
@zombiezen, that is the topic of #14698 |
CL https://golang.org/cl/20348 mentions this issue. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version devel +8969ab8 Mon Mar 7 22:41:22 2016 +0000 darwin/amd64
go env
)?mac osx 10.11.3
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
./make.bash. I am now seeing
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
The text was updated successfully, but these errors were encountered: