Skip to content

Commit

Permalink
Fix some compiler warnings in lens.c, augmatch.c (#818)
Browse files Browse the repository at this point in the history
Co-authored-by: George Hansper <george@hansper.id.au>
  • Loading branch information
georgehansper and George Hansper authored Oct 28, 2023
1 parent b39a6f7 commit f0a0586
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.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ char *enc_format_indent(const char *e, size_t len, int indent);
#if ENABLE_DEBUG
void dump_lens_tree(struct lens *lens);
void dump_lens(FILE *out, struct lens *lens);
#else
#define dump_lens_tree(lens) (void)0
#endif

#endif
Expand Down

0 comments on commit f0a0586

Please sign in to comment.