diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-13 14:30:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-13 14:30:54 +0000 |
commit | 0ccc5dbe83218c981261240c4973d42919bf6d29 (patch) | |
tree | 444f73d4b5daa94c8a1f6de4020660dac89742e6 | |
parent | ee499a8745c36e36ab9ce6ea619525b496b6bb42 (diff) | |
download | ruby-0ccc5dbe83218c981261240c4973d42919bf6d29.tar.gz |
* io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
get rid of warnings. fixed: [ruby-core:06247]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/syck/rubyext.c | 2 | ||||
-rw-r--r-- | ext/syck/syck.h | 3 | ||||
-rw-r--r-- | io.c | 4 | ||||
-rw-r--r-- | missing/isinf.c | 1 | ||||
-rw-r--r-- | pack.c | 2 |
6 files changed, 14 insertions, 3 deletions
@@ -1,8 +1,11 @@ -Thu Oct 13 23:25:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Oct 13 23:29:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (HEAPCNT): bison allocates indivisible size. fixed: [ruby-core:06261] + * io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c: + get rid of warnings. fixed: [ruby-core:06247] + Wed Oct 12 12:51:56 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/ossl.c (Init_openssl): should call diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c index e3b07775c9..6ae73a9714 100644 --- a/ext/syck/rubyext.c +++ b/ext/syck/rubyext.c @@ -1339,7 +1339,7 @@ syck_badalias_cmp( alias1, alias2 ) */ VALUE syck_domaintype_initialize( self, domain, type_id, val ) - VALUE self, type_id, val; + VALUE self, domain, type_id, val; { rb_iv_set( self, "@domain", domain ); rb_iv_set( self, "@type_id", type_id ); diff --git a/ext/syck/syck.h b/ext/syck/syck.h index 4d65095e23..f7ac39fc94 100644 --- a/ext/syck/syck.h +++ b/ext/syck/syck.h @@ -445,6 +445,9 @@ long syck_seq_count( SyckNode * ); * Lexer prototypes */ void syckerror( char * ); +int syckparse( void * ); +union YYSTYPE; +int sycklex( union YYSTYPE *, SyckParser * ); #if defined(__cplusplus) } /* extern "C" { */ @@ -72,6 +72,10 @@ #include <unistd.h> #endif +#ifdef HAVE_SYSCALL_H +#include <syscall.h> +#endif + extern void Init_File(void); #ifdef __BEOS__ diff --git a/missing/isinf.c b/missing/isinf.c index 8829b72935..e44ef6c3c1 100644 --- a/missing/isinf.c +++ b/missing/isinf.c @@ -23,6 +23,7 @@ isinf(n) #if defined(HAVE_FINITE) && defined(HAVE_ISNAN) +#include <math.h> #ifdef HAVE_IEEEFP_H #include <ieeefp.h> #endif @@ -2020,7 +2020,7 @@ uv_to_utf8(char *buf, unsigned long uv) rb_raise(rb_eRangeError, "pack(U): value out of range"); } -static const long utf8_limits[] = { +static const unsigned long utf8_limits[] = { 0x0, /* 1 */ 0x80, /* 2 */ 0x800, /* 3 */ |