mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
b5c6fc8561
commit
e3b4cd38df
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue