diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:15:23 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:15:23 +0000 |
commit | a43f1719f4fc1d12b12e41861e6a14d149cd0b8a (patch) | |
tree | 96c49cce151c2bcf97a190bececcf96e8d1da3de | |
parent | d8d54d650e8e071b1a23b376e702965905f8a74d (diff) | |
download | ruby-a43f1719f4fc1d12b12e41861e6a14d149cd0b8a.tar.gz |
kill "discards ‘const’ qualifier" warning
Kill following warning.
../../../ext/psych/yaml/emitter.c: In function ‘yaml_emitter_write_block_scalar_hints’:
../../../ext/psych/yaml/emitter.c:2196:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
chomp_hint = "-";
^
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/psych/yaml/emitter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/yaml/emitter.c b/ext/psych/yaml/emitter.c index cafb550bc5..580a8d2123 100644 --- a/ext/psych/yaml/emitter.c +++ b/ext/psych/yaml/emitter.c @@ -2178,7 +2178,7 @@ yaml_emitter_write_block_scalar_hints(yaml_emitter_t *emitter, yaml_string_t string) { char indent_hint[2]; - char *chomp_hint = NULL; + const char *chomp_hint = NULL; if (IS_SPACE(string) || IS_BREAK(string)) { |