From ae0f3c5ebb199363a80f0e820f963e64141a03e4 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 2 Jan 2021 09:38:27 -0800 Subject: [PATCH] Fixed warn/obsolete --- BeefLibs/corlib/src/System.bf | 2 +- IDEHelper/Compiler/BfModule.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BeefLibs/corlib/src/System.bf b/BeefLibs/corlib/src/System.bf index 65f66276..d7c6f7ef 100644 --- a/BeefLibs/corlib/src/System.bf +++ b/BeefLibs/corlib/src/System.bf @@ -153,7 +153,7 @@ static } [NoShow] - [Warn("This mixin has been replaced by ClearAndDeleteItems")] + [Obsolete("This mixin has been replaced by ClearAndDeleteItems", false)] public static mixin DeleteAndClearItems(var container) { for (var value in container) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 4c3dbdf0..93d9db73 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -3093,9 +3093,9 @@ void BfModule::CheckErrorAttributes(BfTypeInstance* typeInstance, BfMethodInstan { String err; if (methodInstance != NULL) - StrFormat("Method error: '", MethodToString(methodInstance).c_str()); + err += StrFormat("Method error: '", MethodToString(methodInstance).c_str()); else - StrFormat("Type error: '", TypeToString(typeInstance, BfTypeNameFlag_UseUnspecializedGenericParamNames).c_str()); + err += StrFormat("Type error: '", TypeToString(typeInstance, BfTypeNameFlag_UseUnspecializedGenericParamNames).c_str()); String* str = GetStringPoolString(customAttribute->mCtorArgs[0], constHolder); if (str != NULL) err += *str; @@ -3109,9 +3109,9 @@ void BfModule::CheckErrorAttributes(BfTypeInstance* typeInstance, BfMethodInstan { String err; if (methodInstance != NULL) - StrFormat("Method warning: '", MethodToString(methodInstance).c_str()); + err += StrFormat("Method warning: '", MethodToString(methodInstance).c_str()); else - StrFormat("Type warning: '", TypeToString(typeInstance, BfTypeNameFlag_UseUnspecializedGenericParamNames).c_str()); + err += StrFormat("Type warning: '", TypeToString(typeInstance, BfTypeNameFlag_UseUnspecializedGenericParamNames).c_str()); String* str = GetStringPoolString(customAttribute->mCtorArgs[0], constHolder); if (str != NULL) err += *str;