mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
kill "value computed is not used" warning
Currently, gcc claims your coding style is not good. Shut it up. ../../../ext/psych/yaml/emitter.c: In function ‘yaml_emitter_write_plain_scalar’: ../../../ext/psych/yaml/emitter.c:28:6: warning: value computed is not used [-Wunused-value] && ((emitter->line_break == YAML_CR_BREAK ? \ ^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4911d45648
commit
af14720f74
1 changed files with 3 additions and 3 deletions
|
@ -24,8 +24,8 @@
|
|||
*/
|
||||
|
||||
#define PUT_BREAK(emitter) \
|
||||
(FLUSH(emitter) \
|
||||
&& ((emitter->line_break == YAML_CR_BREAK ? \
|
||||
(FLUSH(emitter) ? \
|
||||
((emitter->line_break == YAML_CR_BREAK ? \
|
||||
(*(emitter->buffer.pointer++) = (yaml_char_t) '\r') : \
|
||||
emitter->line_break == YAML_LN_BREAK ? \
|
||||
(*(emitter->buffer.pointer++) = (yaml_char_t) '\n') : \
|
||||
|
@ -34,7 +34,7 @@
|
|||
*(emitter->buffer.pointer++) = (yaml_char_t) '\n') : 0), \
|
||||
emitter->column = 0, \
|
||||
emitter->line ++, \
|
||||
1))
|
||||
1) : 0)
|
||||
|
||||
/*
|
||||
* Copy a character from a string into buffer.
|
||||
|
|
Loading…
Reference in a new issue