Bug 12684 - source4/torture/local/nss_tests.c ( gid_t* ---> int * )
source4/torture/local/nss_tests.c ( gid_t* ---> int * )
Status: RESOLVED WONTFIX
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build
4.6.0
x64 Mac OS X
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
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.