From 1493972e8234cd5d57881d2353d153aa7cd67e72 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 21 Oct 2017 13:15:23 +0000 Subject: =?UTF-8?q?kill=20"discards=20=E2=80=98const=E2=80=99=20qualifier"?= =?UTF-8?q?=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ext/psych/yaml/emitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/psych/yaml') 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)) { -- cgit v1.2.3