summaryrefslogtreecommitdiff
path: root/ext/psych/yaml/emitter.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 13:15:23 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 13:15:23 +0000
commit1493972e8234cd5d57881d2353d153aa7cd67e72 (patch)
tree96c49cce151c2bcf97a190bececcf96e8d1da3de /ext/psych/yaml/emitter.c
parente3b4cd38dfe6df2545bf7a3dee01f9b4a78e94d0 (diff)
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
Diffstat (limited to 'ext/psych/yaml/emitter.c')
-rw-r--r--ext/psych/yaml/emitter.c2
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))
{