[ruby-cvs:64187] shugo:r57021 (trunk): Add volatile to a suppress warning.

shugo at ruby-lang.org shugo at ruby-lang.org
Thu Dec 8 08:47:59 JST 2016

shugo	2016-12-08 08:47:59 +0900 (Thu, 08 Dec 2016)

  New Revision: 57021


    Add volatile to a suppress warning.
    Without the fix, the following warning is shown:
        compiling cont.c
        cont.c: In function ?\226?\128?\152rb_callcc?\226?\128?\153:
        cont.c:949:39: warning: passing argument 1 of ?\226?\128?\152cont_capture?\226?\128?\153 discards ?\226?\128?\152volatile?\226?\128?\153 qualifier from pointer target type [-Wdiscarded-qualifiers]
     volatile VALUE val = cont_capture(&called);
        cont.c:473:1: note: expected ?\226?\128?\152int * volatile?\226?\128?\153 but argument is of type ?\226?\128?\152volatile int *?\226?\128?\153
         cont_capture(int *volatile stat)

  Modified files:

More information about the ruby-cvs mailing list