diff --git a/src/asm/charmap.cpp b/src/asm/charmap.cpp index ae9d0b66..16656c5f 100644 --- a/src/asm/charmap.cpp +++ b/src/asm/charmap.cpp @@ -4,7 +4,6 @@ #include #include -#include #include #include #include diff --git a/src/asm/macro.cpp b/src/asm/macro.cpp index 187de1f1..aaa41e49 100644 --- a/src/asm/macro.cpp +++ b/src/asm/macro.cpp @@ -59,7 +59,7 @@ char const *macro_GetAllArgs() { for (uint32_t i = macroArgs->shift; i < nbArgs; i++) len += macroArgs->args[i].length() + 1; // 1 for comma - char *str = new char[len + 1]; // 1 for '\0' + char *str = new (std::nothrow) char[len + 1]; // 1 for '\0' char *ptr = str; if (!str) diff --git a/src/asm/rpn.cpp b/src/asm/rpn.cpp index afac5c37..da04a336 100644 --- a/src/asm/rpn.cpp +++ b/src/asm/rpn.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/src/asm/section.cpp b/src/asm/section.cpp index 8b3e6d23..1f743549 100644 --- a/src/asm/section.cpp +++ b/src/asm/section.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/src/asm/symbol.cpp b/src/asm/symbol.cpp index 04210008..1f3bcb7b 100644 --- a/src/asm/symbol.cpp +++ b/src/asm/symbol.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/src/link/sdas_obj.cpp b/src/link/sdas_obj.cpp index 862ba6c6..6f368ddc 100644 --- a/src/link/sdas_obj.cpp +++ b/src/link/sdas_obj.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include