From: Kazuhiro NISHIYAMA Date: 2010-12-10T11:18:18+09:00 Subject: [ruby-dev:42730] [Ruby 1.9-Bug#4143][Open] warning: "SUPPORT_JOKE" is not defined Bug #4143: warning: "SUPPORT_JOKE" is not defined http://redmine.ruby-lang.org/issues/show/4143 起票者: Kazuhiro NISHIYAMA ステータス: Open, 優先度: Normal カテゴリ: core ruby -v: ruby 1.9.3dev (2010-12-10 trunk 30153) [x86_64-linux] chkbuild で以前から id.h:110:5: warning: "SUPPORT_JOKE" is not defined id.h:116:5: warning: "SUPPORT_JOKE" is not defined という警告が出ているのですが、id.h で「#if SUPPORT_JOKE」として参照しているのに SUPPORT_JOKE を #define している vm_opts.h を include せずに id.h だけを include しているファイルがあるからのようです。 (debug.c のように vm_core.h 経由で vm_opts.h を include した後に id.h を include しているものもある。) というわけで以下の修正で警告は出なくなるようです。 diff --git a/template/id.h.tmpl b/template/id.h.tmpl index b91292a..29548de 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -50,6 +50,8 @@ end #include "parse.h" #endif +#include "vm_opts.h" /* for SUPPORT_JOKE */ + #define symIFUNC ID2SYM(idIFUNC) #define symCFUNC ID2SYM(idCFUNC) ---------------------------------------- http://redmine.ruby-lang.org