summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--eval.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 670ff37f8c..99cef1d964 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jul 3 05:11:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (PUSH_FRAME): suppress warnings.
+
+ * eval.c (arg_defined): constified.
+
Thu Jul 3 05:09:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (Makefile): need to pass a variable explicitly.
diff --git a/eval.c b/eval.c
index f7ce170fd4..2a654698e3 100644
--- a/eval.c
+++ b/eval.c
@@ -766,7 +766,7 @@ static unsigned long frame_unique = 0;
_frame.argc = 0; \
_frame.flags = 0; \
_frame.uniq = frame_unique++; \
- ruby_frame = &_frame
+ ruby_frame = (struct FRAME *)&_frame
#define POP_FRAME() \
ruby_current_node = _frame.node; \
@@ -2329,7 +2329,7 @@ arg_defined(self, node, buf, type)
VALUE self;
NODE *node;
char *buf;
- char *type;
+ const char *type;
{
int argc;
int i;