Bug 12684 - source4/torture/local/nss_tests.c ( gid_t* ---> int * )
Summary: source4/torture/local/nss_tests.c ( gid_t* ---> int * )
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.6.0
Hardware: x64 Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-12 18:06 UTC by Ruga
Modified: 2017-03-12 19:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruga 2017-03-12 18:06:42 UTC
[2012/3257] Compiling source4/torture/local/nss_tests.c
../source4/torture/local/nss_tests.c:730:33: warning: passing 'gid_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                ret = getgrouplist(user, gid, groups, &num_groups);
                                              ^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:653:43: note: passing argument to parameter here
int      getgrouplist(const char *, int, int *, int *);
                                              ^
1 warning generated.
Comment 1 Ruga 2017-03-12 18:07:34 UTC
Use "int" instead of "gid_t".
Comment 2 Ruga 2017-03-12 19:32:52 UTC
(In reply to Ruga from comment #1)

No, changing all relevant gid_t to int is not enough.