Skip to content

Commit

Permalink
Fix some compiler warnings in lens.c, augmatch.c
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hansper committed Sep 30, 2023
1 parent b39a6f7 commit 26d2978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/augmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static char *guess_lens_name(const char *file) {

int main(int argc, char **argv) {
int opt;
cleanup(aug_closep) struct augeas *aug;
cleanup(aug_closep) struct augeas *aug = NULL;
cleanup(freep) char *loadpath = NULL;
size_t loadpath_len = 0;
cleanup(freep) char *root = NULL;
Expand Down
2 changes: 2 additions & 0 deletions src/lens.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,10 @@ void free_lens(struct lens *lens) {
return;
ensure(lens->ref == 0, lens->info);

#if ENABLE_DEBUG
if (debugging("lenses"))
dump_lens_tree(lens);
#endif
switch (lens->tag) {
case L_DEL:
unref(lens->regexp, regexp);
Expand Down

0 comments on commit 26d2978

Please sign in to comment.