From: pegacorn Date: 2007-07-15T13:41:30+09:00 Subject: [ruby-dev:31231] Re: trunk: バグを指摘している警告 From: pegacorn Date: Sat, 14 Jul 2007 20:00:01 +0900 Message-Id: <20070714.195544.63132606.subscriber.jp@gmail.com> /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > trunk で -Wall を付けてコンパイルしてみると、バグを指摘している警告が > いくつか見付かりました。 追加です。 (今回のは、たぶん動作に影響する処理系は無いと思いますが…) compiling openssl gcc -I. -I../../.ext/include/i386-freebsd6.2 -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -Wall -c ossl.c ossl.c: In function `Init_openssl': ossl.c:476: warning: implicit declaration of function `Init_ossl_pkcs5' compiling syck gcc -I. -I../../.ext/include/i386-freebsd6.2 -I../.././include -I../.././ext/syck -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -Wall -c rubyext.c rubyext.c: In function `syck_set_model': rubyext.c:682: warning: implicit declaration of function `syck_parser_set_input_type' Index: ext/openssl/ossl.h =================================================================== --- ext/openssl/ossl.h (リビジョン 12788) +++ ext/openssl/ossl.h (作業コピー) @@ -203,6 +203,7 @@ #include "ossl_ocsp.h" #include "ossl_pkcs12.h" #include "ossl_pkcs7.h" +#include "ossl_pkcs5.h" #include "ossl_pkey.h" #include "ossl_rand.h" #include "ossl_ssl.h" Index: ext/openssl/ossl_pkcs5.h =================================================================== --- ext/openssl/ossl_pkcs5.h (リビジョン 0) +++ ext/openssl/ossl_pkcs5.h (リビジョン 0) @@ -0,0 +1,6 @@ +#if !defined(_OSSL_PKCS5_H_) +#define _OSSL_PKCS5_H_ + +void Init_ossl_pkcs5(void); + +#endif /* _OSSL_PKCS5_H_ */ Index: ext/syck/syck.h =================================================================== --- ext/syck/syck.h (リビジョン 12788) +++ ext/syck/syck.h (作業コピー) @@ -399,6 +399,7 @@ void syck_parser_handler( SyckParser *, SyckNodeHandler ); void syck_parser_error_handler( SyckParser *, SyckErrorHandler ); void syck_parser_bad_anchor_handler( SyckParser *, SyckBadAnchorHandler ); +void syck_parser_set_input_type( SyckParser *, enum syck_parser_input ); void syck_parser_file( SyckParser *, FILE *, SyckIoFileRead ); void syck_parser_str( SyckParser *, char *, long, SyckIoStrRead ); void syck_parser_str_auto( SyckParser *, char *, SyckIoStrRead ); -- pegacorn