[ruby-cvs:67444] kosaki:r60263 (trunk): kill variable set but not used warning

kosaki at ruby-lang.org kosaki at ruby-lang.org
Sat Oct 21 22:01:51 JST 2017


kosaki	2017-10-21 22:01:51 +0900 (Sat, 21 Oct 2017)

  New Revision: 60263

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60263

  Log:
    kill variable set but not used warning
    
    Currently, dummy_mark variable makes following warnings. Let's fix it.
    
    ../../../ext/psych/yaml/parser.c: In function ?\226?\128?\152yaml_parser_parse_block_sequence_entry?\226?\128?\153:
    ../../../ext/psych/yaml/parser.c:762:21: warning: variable ?\226?\128?\152dummy_mark?\226?\128?\153 set but not used [-Wunused-but-set-variable]
             yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */
                         ^

  Modified files:
    trunk/ext/psych/yaml/parser.c


More information about the ruby-cvs mailing list