summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
-rw-r--r--ext/io/console/console.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index b336045..71f8b23 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -1959,7 +1959,7 @@ is_even(VALUE x)
static VALUE
rmpd_power_by_big_decimal(Real const* x, Real const* exp, ssize_t const n)
{
- VALUE log_x, multiplied, y, vn;
+ VALUE log_x, multiplied, y;
if (VpIsZero(exp)) {
return ToValue(VpCreateRbObject(n, "1"));
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 87101fe..6fa0e90 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -557,7 +557,7 @@ console_dev(VALUE klass)
VALUE out;
rb_io_t *ofptr;
#endif
- int fd, mode;
+ int fd;
#ifdef CONSOLE_DEVICE_FOR_WRITING
fd = open(CONSOLE_DEVICE_FOR_WRITING, O_WRONLY);