mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
3069. [cleanup] Silence warnings messages from clang static analysis.
[RT #20256]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: parser.c,v 1.140 2011/02/21 06:07:49 marka Exp $ */
|
||||
/* $Id: parser.c,v 1.141 2011/03/11 06:11:27 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1904,6 +1904,7 @@ cfg_doc_netaddr(cfg_printer_t *pctx, const cfg_type_t *type) {
|
||||
cfg_print_chars(pctx, " | ", 3);
|
||||
cfg_print_chars(pctx, "*", 1);
|
||||
n++;
|
||||
POST(n);
|
||||
}
|
||||
if (*flagp != CFG_ADDR_V4OK && *flagp != CFG_ADDR_V6OK)
|
||||
cfg_print_chars(pctx, " )", 2);
|
||||
@@ -1943,7 +1944,7 @@ cfg_parse_netprefix(cfg_parser_t *pctx, const cfg_type_t *type,
|
||||
cfg_obj_t *obj = NULL;
|
||||
isc_result_t result;
|
||||
isc_netaddr_t netaddr;
|
||||
unsigned int addrlen, prefixlen;
|
||||
unsigned int addrlen = 0, prefixlen;
|
||||
UNUSED(type);
|
||||
|
||||
CHECK(cfg_parse_rawaddr(pctx, CFG_ADDR_V4OK | CFG_ADDR_V4PREFIXOK |
|
||||
@@ -1956,7 +1957,6 @@ cfg_parse_netprefix(cfg_parser_t *pctx, const cfg_type_t *type,
|
||||
addrlen = 128;
|
||||
break;
|
||||
default:
|
||||
addrlen = 0;
|
||||
INSIST(0);
|
||||
break;
|
||||
}
|
||||
@@ -2095,6 +2095,7 @@ cfg_doc_sockaddr(cfg_printer_t *pctx, const cfg_type_t *type) {
|
||||
cfg_print_chars(pctx, " | ", 3);
|
||||
cfg_print_chars(pctx, "*", 1);
|
||||
n++;
|
||||
POST(n);
|
||||
}
|
||||
cfg_print_chars(pctx, " ) ", 3);
|
||||
if (*flagp & CFG_ADDR_WILDOK) {
|
||||
|
Reference in New Issue
Block a user