From 8421e8fb03fe10a6f91d23c433f036e6ceb20a7a Mon Sep 17 00:00:00 2001 From: "A. R. Shajii" Date: Sun, 29 Jan 2023 14:15:19 -0500 Subject: [PATCH] Fix warning message arguments --- codon/util/common.cpp | 2 +- codon/util/common.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codon/util/common.cpp b/codon/util/common.cpp index cb9cb7e0..7eb1c561 100644 --- a/codon/util/common.cpp +++ b/codon/util/common.cpp @@ -71,7 +71,7 @@ void compilationError(const std::string &msg, const std::string &file, int line, void compilationWarning(const std::string &msg, const std::string &file, int line, int col, int len, int errorCode, bool terminate, MessageGroupPos pos) { - compilationMessage("\033[1;33mwarning:\033[0m", msg, file, line, col, errorCode, len, + compilationMessage("\033[1;33mwarning:\033[0m", msg, file, line, col, len, errorCode, pos); if (terminate) exit(EXIT_FAILURE); diff --git a/codon/util/common.h b/codon/util/common.h index f79b42f9..2d3ce908 100644 --- a/codon/util/common.h +++ b/codon/util/common.h @@ -158,11 +158,11 @@ enum MessageGroupPos { }; void compilationError(const std::string &msg, const std::string &file = "", - int line = 0, int col = 0, int len = 0, int erroCode = -1, + int line = 0, int col = 0, int len = 0, int errorCode = -1, bool terminate = true, MessageGroupPos pos = NONE); void compilationWarning(const std::string &msg, const std::string &file = "", - int line = 0, int col = 0, int len = 0, int erroCode = -1, + int line = 0, int col = 0, int len = 0, int errorCode = -1, bool terminate = false, MessageGroupPos pos = NONE); } // namespace codon