diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:15:11 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:15:11 +0000 |
commit | e3b4cd38dfe6df2545bf7a3dee01f9b4a78e94d0 (patch) | |
tree | a93a45f52ef8d23f301df3aab5b3885c71451aeb /ext/psych | |
parent | b5c6fc856100b17b6f20e6e792a02ee7e33306bc (diff) | |
download | ruby-e3b4cd38dfe6df2545bf7a3dee01f9b4a78e94d0.tar.gz |
kill "discards ‘const’ qualifier" warning
Kill following warning.
../../../ext/psych/yaml/emitter.c: In function ‘yaml_emitter_write_folded_scalar’:
../../../ext/psych/yaml/emitter.c:2283:5: warning: passing argument 2 of ‘yaml_emitter_write_indicator’ discards ‘const’ qualifier from pointer target type [enabled by default]
if (!yaml_emitter_write_indicator(emitter, ">", 1, 0, 0))
^
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych')
-rw-r--r-- | ext/psych/yaml/emitter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/psych/yaml/emitter.c b/ext/psych/yaml/emitter.c index e052fdbbe0..cafb550bc5 100644 --- a/ext/psych/yaml/emitter.c +++ b/ext/psych/yaml/emitter.c @@ -221,7 +221,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter); static int yaml_emitter_write_indicator(yaml_emitter_t *emitter, - char *indicator, int need_whitespace, + const char *indicator, int need_whitespace, int is_whitespace, int is_indention); static int @@ -1784,7 +1784,7 @@ yaml_emitter_write_indent(yaml_emitter_t *emitter) static int yaml_emitter_write_indicator(yaml_emitter_t *emitter, - char *indicator, int need_whitespace, + const char *indicator, int need_whitespace, int is_whitespace, int is_indention) { size_t indicator_length; |