Skip to content

Commit 834c3a2

Browse files
committed
Fix build warnings
1 parent 753a6f8 commit 834c3a2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/lpython/semantics/python_comptime_eval.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,6 @@ struct PythonIntrinsicProcedures {
659659
throw SemanticError("str.capitalize() takes no arguments", loc);
660660
}
661661
ASR::expr_t *arg = args[0];
662-
ASR::ttype_t *arg_type = ASRUtils::expr_type(arg);
663662
std::string val = ASR::down_cast<ASR::StringConstant_t>(arg)->m_s;
664663
if (val.size()) {
665664
val[0] = std::toupper(val[0]);
@@ -676,7 +675,6 @@ struct PythonIntrinsicProcedures {
676675
throw SemanticError("str.lower() takes no arguments", loc);
677676
}
678677
ASR::expr_t *arg = args[0];
679-
ASR::ttype_t *arg_type = ASRUtils::expr_type(arg);
680678
std::string val = ASR::down_cast<ASR::StringConstant_t>(arg)->m_s;
681679
for (auto &i: val) {
682680
if (i >= 'A' && i <= 'Z') {

0 commit comments

Comments
 (0)