[ruby-cvs:53446] shyouhei:r46278 (trunk): * thread.c (rb_thread_atfork_internal): My compiler complains

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Sat May 31 21:24:29 JST 2014


shyouhei	2014-05-31 21:24:28 +0900 (Sat, 31 May 2014)

  New Revision: 46278

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

  Log:
    * thread.c (rb_thread_atfork_internal): My compiler complains
      about this variable being used before initialized. I looked at
      the code and expanded the macro and turned out it was actually
      USED for pointer arithmetic, not dereferenced.  So this was
      never a serious bug.  But is annoying indeed to see warnings
      every time.  I added `=0` and all went healthy.
    
    * configure.in: Also, I found that the problematic macro expansion
      only happens when we lack __typeof__ C extension, which shall
      not be the case of my compiler.  I added AC_CTYPEOF to kick ass.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/thread.c


More information about the ruby-cvs mailing list