]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
sun cc warnings
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Jan 2009 10:34:18 +0000 (10:34 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Jan 2009 10:34:18 +0000 (10:34 +0000)
git-svn-id: file:///svn/unbound/trunk@1439 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iter_scrub.c
libunbound/libunbound.c
validator/validator.c

index 22ab00b7704705d95129b1bd3ab33873910f5d2e..e6bdd8bb536b6a7ac41b67eb8356a5eeda4dffb0 100644 (file)
@@ -1,6 +1,7 @@
 15 January 2009: Wouter
        - bug #229: fixup configure checks for compilation with Solaris 
          Sun cc compiler, ./configure CC=/opt/SUNWspro/bin/cc
+       - fixup suncc warnings.
 
 14 January 2009: Wouter
        - 1.2.1 feature: negative caching for failed queries.
index 69782ce8c99a30ff6e283cfb5b5028ef608b9ef6..7ec032a7216fe69891a3ddc281d1e3110a61fbe1 100644 (file)
@@ -101,10 +101,7 @@ has_additional(uint16_t t)
                case LDNS_RR_TYPE_NAPTR:
                        /* TODO: NAPTR not supported, glue stripped off */
                        return 0;
-               default:
-                       return 0;
        }
-       /* NOTREACHED */
        return 0;
 }
 
index 73002ae5ed1509e0322eb0547d93ed0ea79d39ca..d646ffee8bd8e60ed9cc0f89277d7b2655a0d1c1 100644 (file)
@@ -460,14 +460,13 @@ ub_process(struct ub_ctx* ctx)
                if(r == 0)
                        return UB_PIPE;
                else if(r == -1)
-                       return UB_NOERROR;
+                       break;
                if(!process_answer(ctx, msg, len)) {
                        free(msg);
                        return UB_PIPE;
                }
                free(msg);
        }
-       /* NOTREACHED */
        return UB_NOERROR;
 }
 
index be415d832c0b5283b816efcc45337852c25ac2a3..a0e9527862db9b751f9dc5f6c9095ab946c35b82 100644 (file)
@@ -2182,13 +2182,12 @@ ds_response_to_ke(struct module_qstate* qstate, struct val_qstate* vq,
        } else {
                verbose(VERB_QUERY, "Encountered an unhandled type of "
                        "DS response, thus bogus.");
-return_bogus:
-               *ke = key_entry_create_bad(qstate->region, qinfo->qname,
-                       qinfo->qname_len, qinfo->qclass);
-               return (*ke) != NULL;
+               goto return_bogus;
        }
-       /* NOTREACHED */
-       return 0;
+return_bogus:
+       *ke = key_entry_create_bad(qstate->region, qinfo->qname,
+               qinfo->qname_len, qinfo->qclass);
+       return (*ke) != NULL;
 }
 
 /**