forked from external/yambar
yml: silence unused variable warning with Clang 13
yml.c:383:9: error: variable 'indent' set but not used [-Werror,-Wunused-but-set-variable] int indent = 0; ^
This commit is contained in:
parent
f8e544ae05
commit
03476e9360
1 changed files with 3 additions and 1 deletions
4
yml.c
4
yml.c
|
@ -9,6 +9,8 @@
|
|||
#include <yaml.h>
|
||||
#include <tllist.h>
|
||||
|
||||
#define UNUSED __attribute__((unused))
|
||||
|
||||
enum yml_error {
|
||||
YML_ERR_NONE,
|
||||
YML_ERR_DUPLICATE_KEY,
|
||||
|
@ -380,7 +382,7 @@ yml_load(FILE *yml, char **error)
|
|||
yaml_parser_set_input_file(&yaml, yml);
|
||||
|
||||
bool done = false;
|
||||
int indent = 0;
|
||||
int indent UNUSED = 0;
|
||||
|
||||
struct yml_node *root = malloc(sizeof(*root));
|
||||
root->type = ROOT;
|
||||
|
|
Loading…
Add table
Reference in a new issue