mirror of
https://github.com/ruby/ruby.git
synced 2026-08-03 11:18:06 +08:00
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
This commit is contained in:
parent
e3b4cd38df
commit
1493972e82
@ -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))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user