Fix gcc warnings at -O3.
authorJeremy Allison <jra@samba.org>
Fri, 27 Jun 2008 02:20:51 +0000 (19:20 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 27 Jun 2008 07:06:06 +0000 (09:06 +0200)
Jeremy.
(cherry picked from commit 096ff390a24ce971c9a207493dc1b5d9f88518b6)

source/auth/auth_util.c
source/libsmb/dsgetdcname.c
source/rpc_client/cli_pipe.c

index 115a6e9ad205bf4370dcdd66bcfe7cae80a6bd45..202452602ca8eabf142698c300c7be2800eef454 100644 (file)
@@ -568,7 +568,7 @@ NTSTATUS make_server_info_sam(auth_serversupplied_info **server_info,
                 * a PDC. JRA.
                 */
 
-               winbind_off();
+               (void)winbind_off();
 
                DEBUG(10, ("make_server_info_sam: our machine account %s "
                        "setting supplementary group list empty and "
index 48e497b74c3f47fed15863777af03118981d632b..8d75593ddc8281d2b4d2c2d93e977a497168cfbc 100644 (file)
@@ -920,7 +920,8 @@ static NTSTATUS make_dc_info_from_cldap_reply(TALLOC_CTX *mem_ctx,
                                              union nbt_cldap_netlogon *r,
                                              struct netr_DsRGetDCNameInfo **info)
 {
-       const char *dc_hostname, *dc_domain_name;
+       const char *dc_hostname = NULL;
+       const char *dc_domain_name = NULL;
        const char *dc_address = NULL;
        const char *dc_forest = NULL;
        uint32_t dc_address_type = 0;
index 71422cd9adbfd31df244fb0883e58add901220a6..425eb26cb047c841c39d5393acac4fbc0b589f48 100644 (file)
@@ -445,8 +445,8 @@ static NTSTATUS cli_pipe_validate_rpc_response(struct rpc_pipe_client *cli, RPC_
                        return NT_STATUS_INVALID_PARAMETER;
                }
 
-               if (prhdr->auth_len + RPC_HDR_AUTH_LEN < prhdr->auth_len ||
-                               prhdr->auth_len + RPC_HDR_AUTH_LEN < RPC_HDR_AUTH_LEN) {
+               if (prhdr->auth_len + (unsigned int)RPC_HDR_AUTH_LEN < prhdr->auth_len ||
+                               prhdr->auth_len + (unsigned int)RPC_HDR_AUTH_LEN < (unsigned int)RPC_HDR_AUTH_LEN) {
                        /* Integer wrap attempt. */
                        return NT_STATUS_INVALID_PARAMETER;
                }