1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

s3:lib:wins fix a compile warning on Ubuntu 18.04

gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) with -O2 puts up a warning here:
../../source3/lib/wins_srv.c: In function ‘wins_srv_tags’:
../../source3/lib/wins_srv.c:235:3: error: assuming signed overflow does not
occur when simplifying conditional to constant [-Werror=strict-overflow]
   for (j=0;j<count;j++) {
   ^~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>

Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Oct 23 04:57:09 UTC 2019 on sn-devel-184
This commit is contained in:
Christian Ambach
2019-10-22 11:02:05 +02:00
committed by Uri Simchoni
parent f37b913348
commit 1b69795c5b

View File

@ -208,7 +208,7 @@ static void parse_ip(struct tagged_ip *ip, const char *str)
char **wins_srv_tags(void)
{
char **ret = NULL;
int count=0, i, j;
unsigned int count=0, i, j;
const char **list;
if (lp_we_are_a_wins_server()) {