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 /tests/test-version.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 'tests/test-version.c')
-rw-r--r-- | tests/test-version.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-version.c b/tests/test-version.c index 69ae5bb..0c59837 100644 --- a/tests/test-version.c +++ b/tests/test-version.c @@ -21,9 +21,9 @@ main(void) assert(strcmp(buf, yaml_get_version_string()) == 0); /* Print structure sizes. */ - printf("sizeof(token) = %lu\n", sizeof(yaml_token_t)); - printf("sizeof(event) = %lu\n", sizeof(yaml_event_t)); - printf("sizeof(parser) = %lu\n", sizeof(yaml_parser_t)); + printf("sizeof(token) = %ld\n", (long)sizeof(yaml_token_t)); + printf("sizeof(event) = %ld\n", (long)sizeof(yaml_event_t)); + printf("sizeof(parser) = %ld\n", (long)sizeof(yaml_parser_t)); return 0; } |