sun cc warnings

git-svn-id: file:///svn/unbound/trunk@1439 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-01-15 10:34:18 +00:00
parent c90fd40a5e
commit 0b04be414e
4 changed files with 7 additions and 11 deletions

View file

@ -1,6 +1,7 @@
15 January 2009: Wouter 15 January 2009: Wouter
- bug #229: fixup configure checks for compilation with Solaris - bug #229: fixup configure checks for compilation with Solaris
Sun cc compiler, ./configure CC=/opt/SUNWspro/bin/cc Sun cc compiler, ./configure CC=/opt/SUNWspro/bin/cc
- fixup suncc warnings.
14 January 2009: Wouter 14 January 2009: Wouter
- 1.2.1 feature: negative caching for failed queries. - 1.2.1 feature: negative caching for failed queries.

View file

@ -101,10 +101,7 @@ has_additional(uint16_t t)
case LDNS_RR_TYPE_NAPTR: case LDNS_RR_TYPE_NAPTR:
/* TODO: NAPTR not supported, glue stripped off */ /* TODO: NAPTR not supported, glue stripped off */
return 0; return 0;
default:
return 0;
} }
/* NOTREACHED */
return 0; return 0;
} }

View file

@ -460,14 +460,13 @@ ub_process(struct ub_ctx* ctx)
if(r == 0) if(r == 0)
return UB_PIPE; return UB_PIPE;
else if(r == -1) else if(r == -1)
return UB_NOERROR; break;
if(!process_answer(ctx, msg, len)) { if(!process_answer(ctx, msg, len)) {
free(msg); free(msg);
return UB_PIPE; return UB_PIPE;
} }
free(msg); free(msg);
} }
/* NOTREACHED */
return UB_NOERROR; return UB_NOERROR;
} }

View file

@ -2182,14 +2182,13 @@ ds_response_to_ke(struct module_qstate* qstate, struct val_qstate* vq,
} else { } else {
verbose(VERB_QUERY, "Encountered an unhandled type of " verbose(VERB_QUERY, "Encountered an unhandled type of "
"DS response, thus bogus."); "DS response, thus bogus.");
goto return_bogus;
}
return_bogus: return_bogus:
*ke = key_entry_create_bad(qstate->region, qinfo->qname, *ke = key_entry_create_bad(qstate->region, qinfo->qname,
qinfo->qname_len, qinfo->qclass); qinfo->qname_len, qinfo->qclass);
return (*ke) != NULL; return (*ke) != NULL;
} }
/* NOTREACHED */
return 0;
}
/** /**
* Process DS response. Called from inform_supers. * Process DS response. Called from inform_supers.