summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 22:33:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 22:33:59 +0000
commit0d5ed3d2ad67e8c50f23f509af8a66a744258dfb (patch)
tree6c929133b40c9be092838438adcf1d02a3f4c409
parent7191ea10498be703a60d995b450accdba74c75a3 (diff)
* suppress compile warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--cont.c1
-rw-r--r--ext/tk/tcltklib.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index 3506b6d..81bad6a 100644
--- a/cont.c
+++ b/cont.c
@@ -327,7 +327,6 @@ static void
cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
{
size_t size;
- rb_thread_t *sth = &cont->saved_thread;
SET_MACHINE_STACK_END(&th->machine_stack_end);
#ifdef __ia64
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index f0f0b4a..312b0c0 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -1526,7 +1526,7 @@ call_original_exit(ptr, state)
Tcl_Preserve((ClientData)argv); /* XXXXXXXX */
#endif
#endif
- argv[0] = "exit";
+ argv[0] = (char *)"exit";
/* argv[1] = Tcl_GetString(state_obj); */
argv[1] = Tcl_GetStringFromObj(state_obj, (int*)NULL);
argv[2] = (char *)NULL;