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/emitter.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/emitter.c')
-rw-r--r-- | src/emitter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emitter.c b/src/emitter.c index a5b7ff8..d31e075 100644 --- a/src/emitter.c +++ b/src/emitter.c @@ -1002,7 +1002,7 @@ yaml_emitter_emit_node(yaml_emitter_t *emitter, yaml_event_t *event, */ static int -yaml_emitter_emit_alias(yaml_emitter_t *emitter, yaml_event_t *event) +yaml_emitter_emit_alias(yaml_emitter_t *emitter, SHIM(yaml_event_t *event)) { if (!yaml_emitter_process_anchor(emitter)) return 0; @@ -1087,7 +1087,7 @@ yaml_emitter_emit_mapping_start(yaml_emitter_t *emitter, yaml_event_t *event) */ static int -yaml_emitter_check_empty_document(yaml_emitter_t *emitter) +yaml_emitter_check_empty_document(SHIM(yaml_emitter_t *emitter)) { return 0; } |