summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/syck/rubyext.c2
-rw-r--r--ext/syck/syck.h3
-rw-r--r--io.c4
-rw-r--r--missing/isinf.c1
-rw-r--r--pack.c2
6 files changed, 14 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 95b12e9ebb..0db0ece9c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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" { */
diff --git a/io.c b/io.c
index c7bb72cbd6..5c7fc39c98 100644
--- a/io.c
+++ b/io.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
diff --git a/pack.c b/pack.c
index 376d8ce1c9..f475f26f9b 100644
--- a/pack.c
+++ b/pack.c
@@ -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 */