Merge branch 'clang13'

This commit is contained in:
Daniel Eklöf 2021-10-04 16:37:14 +02:00
commit 4cd031bc73
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
yml.c
View file

@ -9,6 +9,8 @@
#include <yaml.h> #include <yaml.h>
#include <tllist.h> #include <tllist.h>
#define UNUSED __attribute__((unused))
enum yml_error { enum yml_error {
YML_ERR_NONE, YML_ERR_NONE,
YML_ERR_DUPLICATE_KEY, YML_ERR_DUPLICATE_KEY,
@ -380,7 +382,7 @@ yml_load(FILE *yml, char **error)
yaml_parser_set_input_file(&yaml, yml); yaml_parser_set_input_file(&yaml, yml);
bool done = false; bool done = false;
int indent = 0; int indent UNUSED = 0;
struct yml_node *root = malloc(sizeof(*root)); struct yml_node *root = malloc(sizeof(*root));
root->type = ROOT; root->type = ROOT;