diff options
author | Reini Urban <rurban@cpanel.net> | 2016-02-27 11:45:51 +0100 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2018-01-08 10:44:25 -0800 |
commit | fc2dd942fc61ae135b7e2bfe5c248b1f15b74547 (patch) | |
tree | 73d890dce146a918cb53c768c7c8117066712476 /src/dumper.c | |
parent | 2b8b563222293e2cc410cd7fd9cb31f05622d97e (diff) | |
download | libyaml-git-fc2dd942fc61ae135b7e2bfe5c248b1f15b74547.tar.gz |
Fixed most compiler warnings -Wall -Wextra
repro:
CFLAGS="-Wall -Wextra -Wunused-parameter -Wc++-compat" ./configure && make
which we use for perl, and libyaml is now included in cperl.
Tested with gcc-5 and clang-3.7
There are still a tons of format warnings (%d on 64bit) in
example-deconstructor.c which I skipped.
Diffstat (limited to 'src/dumper.c')
-rw-r--r-- | src/dumper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dumper.c b/src/dumper.c index 203c6a7..29fb9c0 100644 --- a/src/dumper.c +++ b/src/dumper.c @@ -245,9 +245,9 @@ yaml_emitter_anchor_node(yaml_emitter_t *emitter, int index) #define ANCHOR_TEMPLATE_LENGTH 16 static yaml_char_t * -yaml_emitter_generate_anchor(yaml_emitter_t *emitter, int anchor_id) +yaml_emitter_generate_anchor(SHIM(yaml_emitter_t *emitter), int anchor_id) { - yaml_char_t *anchor = yaml_malloc(ANCHOR_TEMPLATE_LENGTH); + yaml_char_t *anchor = YAML_MALLOC(ANCHOR_TEMPLATE_LENGTH); if (!anchor) return NULL; |