[SCM] Samba Shared Repository - branch master updated

Uri Simchoni uri at samba.org
Wed Oct 23 04:58:02 UTC 2019


The branch, master has been updated
       via  1b69795c5bb s3:lib:wins fix a compile warning on Ubuntu 18.04
      from  f37b913348e smbd: Save 520 bytes of writable memory from every smbd

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 1b69795c5bbc2ed24c54f8295fd3d9e4e0a0f938
Author: Christian Ambach <ambi at samba.org>
Date:   Tue Oct 22 11:02:05 2019 +0200

    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 at samba.org>
    Reviewed-by: Uri Simchoni <uri at samba.org>
    
    Autobuild-User(master): Uri Simchoni <uri at samba.org>
    Autobuild-Date(master): Wed Oct 23 04:57:09 UTC 2019 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/wins_srv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/wins_srv.c b/source3/lib/wins_srv.c
index 4872d1c75b3..23796a2c5f4 100644
--- a/source3/lib/wins_srv.c
+++ b/source3/lib/wins_srv.c
@@ -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()) {


-- 
Samba Shared Repository



More information about the samba-cvs mailing list