Skip to content

Commit b053533

Browse files
committed
Fix unused variable warning
1 parent bde1024 commit b053533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/symengine/symengine_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ VALUE check_sympify(VALUE operand2, basic_struct *cbasic_operand2) {
66
basic_struct *temp;
77
VALUE a, b;
88
double f;
9-
const char *c;
109

1110
switch(TYPE(operand2)) {
1211
case T_FIXNUM:
@@ -66,6 +65,7 @@ VALUE check_sympify(VALUE operand2, basic_struct *cbasic_operand2) {
6665
}
6766
#ifdef HAVE_SYMENGINE_MPFR
6867
if (strcmp(rb_obj_classname(operand2), "BigDecimal") == 0) {
68+
const char *c;
6969
c = RSTRING_PTR( rb_funcall(operand2, rb_intern("to_s"), 1, rb_str_new2("F")) );
7070
real_mpfr_set_str(cbasic_operand2, c, 200);
7171
break;

0 commit comments

Comments
 (0)