Skip to content

Commit

Permalink
Clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop committed Jan 22, 2025
1 parent db863cb commit 87affee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/generic/number.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static really_inline int32_t parse_int32(
}

nonnull_all
static really_inline int64_t parse_int64(
static really_inline int32_t parse_int64(
parser_t *parser,
const type_info_t *type,
const rdata_info_t *field,
Expand Down
2 changes: 1 addition & 1 deletion src/generic/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,7 @@ static int32_t parse_ipn_rdata(
}
left.code = token->code;
left.data = token->data;
left.length = right.data - token->data;
left.length = (size_t)(right.data - token->data);
right.code = token->code;
right.data += 1;
right.length = token->length - left.length - 1;
Expand Down
4 changes: 2 additions & 2 deletions src/zone.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ static void close_file(
assert(!is_string || file == &parser->first);
assert(!is_string || file->handle == NULL);
(void)parser;

#ifndef NDEBUG
const bool is_stdin = file->name &&
file->name != not_a_file &&
strcmp(file->name, "-") == 0;
assert(!is_stdin || (!file->handle || file->handle == stdin));

#endif
if (file->buffer.data && !is_string)
free(file->buffer.data);
file->buffer.data = NULL;
Expand Down

0 comments on commit 87affee

Please sign in to comment.