From bb152b411111c675563ac2b6d5436b384a82e5a6 Mon Sep 17 00:00:00 2001 From: ToniPlays <34032523+ToniPlays@users.noreply.github.com> Date: Tue, 4 Jan 2022 14:14:31 +0200 Subject: [PATCH] Removed more warnings --- .DS_Store | Bin 6148 -> 6148 bytes Hazard/src/Hazard/Core/Buffer.h | 4 +- HazardEditor/src/GUI/EditorTabWindow.h | 4 +- HazardEditor/src/GUI/EditorView.cpp | 2 + HazardEditor/src/GUI/EditorView.h | 6 +- HazardEditor/src/GUI/EditorWindow.h | 4 +- HazardEditor/src/GUI/RenderableElement.h | 2 +- .../src/GUI/Window/Editor/WelcomePopup.h | 3 +- .../src/GUI/Window/Inspect/FileView.cpp | 6 +- .../src/GUI/Window/Inspect/Properties.h | 4 +- HazardEditor/src/Library/DragDropUtils.cpp | 3 +- HazardEditor/src/Library/Input.cpp | 7 +- .../src/Library/Layout/ContextMenus.cpp | 2 - HazardEditor/src/Library/Layout/Dockspace.cpp | 3 +- HazardEditor/src/Library/Layout/Layout.cpp | 4 +- HazardEditor/src/Library/Layout/Layout.h | 2 +- HazardEditor/src/Library/Style.cpp | 2 +- log | 2630 ++--------------- 18 files changed, 253 insertions(+), 2435 deletions(-) diff --git a/.DS_Store b/.DS_Store index 3e224a602972b9232c3bb8084329189c209801a6..4462c014f2aee42af5d3d1e7a53b4b8a228f25f7 100644 GIT binary patch delta 26 hcmZoMXffE}#>UKK=rvi8O=EH)TN`7*<{xZ4f&gUE2W9{O delta 26 icmZoMXffE}#>UL}>GfnmHjT-JY;BAJn}4wJ2m%0lAP9#5 diff --git a/Hazard/src/Hazard/Core/Buffer.h b/Hazard/src/Hazard/Core/Buffer.h index ac4df3bcc..874da30d7 100644 --- a/Hazard/src/Hazard/Core/Buffer.h +++ b/Hazard/src/Hazard/Core/Buffer.h @@ -13,7 +13,7 @@ namespace Hazard void Allocate(uint32_t size) { if(Data != nullptr) - delete[] Data; + free(Data); Data = nullptr; @@ -24,7 +24,7 @@ namespace Hazard } void Release() { - delete[] Data; + free(Data); Data = nullptr; Size = 0; } diff --git a/HazardEditor/src/GUI/EditorTabWindow.h b/HazardEditor/src/GUI/EditorTabWindow.h index cd86a1b7c..b7cb1f98d 100644 --- a/HazardEditor/src/GUI/EditorTabWindow.h +++ b/HazardEditor/src/GUI/EditorTabWindow.h @@ -14,7 +14,7 @@ namespace WindowElement { void OnRender() override; virtual void Render() = 0; - virtual bool OnEvent(Event& e) = 0; + virtual bool OnEvent(Event& e) override = 0; const std::vector& GetElements() { return m_Elements; } @@ -53,4 +53,4 @@ namespace WindowElement { std::vector m_Elements = std::vector(); std::string m_Title; }; -} \ No newline at end of file +} diff --git a/HazardEditor/src/GUI/EditorView.cpp b/HazardEditor/src/GUI/EditorView.cpp index d0b77929c..64d1ffa8e 100644 --- a/HazardEditor/src/GUI/EditorView.cpp +++ b/HazardEditor/src/GUI/EditorView.cpp @@ -172,6 +172,8 @@ namespace WindowElement { m_Renderer = new EditorPlatformVulkan(nativeWindow, context); break; #endif + default: + break; } } bool EditorView::OnWindowFocus(WindowFocusEvent& e) diff --git a/HazardEditor/src/GUI/EditorView.h b/HazardEditor/src/GUI/EditorView.h index 424fc326b..3d8f589de 100644 --- a/HazardEditor/src/GUI/EditorView.h +++ b/HazardEditor/src/GUI/EditorView.h @@ -13,10 +13,10 @@ namespace WindowElement { EditorView(); ~EditorView() = default; - void Init(); + void Init() override; void Update() override; void Render() override; - bool OnEvent(Hazard::Event& e); + bool OnEvent(Hazard::Event& e) override; void Close() override; @@ -75,4 +75,4 @@ namespace WindowElement { EditorGuiPlatform* m_Renderer = nullptr; Rendering::RenderContext* m_Context = nullptr; }; -} \ No newline at end of file +} diff --git a/HazardEditor/src/GUI/EditorWindow.h b/HazardEditor/src/GUI/EditorWindow.h index ffcab51c3..510f4f7c5 100644 --- a/HazardEditor/src/GUI/EditorWindow.h +++ b/HazardEditor/src/GUI/EditorWindow.h @@ -12,11 +12,9 @@ namespace WindowElement { void OnRender() override; - virtual void Init() {}; virtual void OnWindowRender() = 0; virtual void OnBeforeRender() {}; virtual void OnAfterRender() {}; - virtual bool OnEvent(Hazard::Event& e) override { return false; }; bool IsActive() { return m_Active; } bool IsFocused() { return m_Focused; } @@ -35,4 +33,4 @@ namespace WindowElement { ImGuiWindowFlags m_Flags; }; -} \ No newline at end of file +} diff --git a/HazardEditor/src/GUI/RenderableElement.h b/HazardEditor/src/GUI/RenderableElement.h index bb1499bb0..ed3ad0b1b 100644 --- a/HazardEditor/src/GUI/RenderableElement.h +++ b/HazardEditor/src/GUI/RenderableElement.h @@ -18,4 +18,4 @@ namespace WindowElement virtual void OnRender() {}; virtual bool OnEvent(Hazard::Event& e) { return false; }; }; -} \ No newline at end of file +} diff --git a/HazardEditor/src/GUI/Window/Editor/WelcomePopup.h b/HazardEditor/src/GUI/Window/Editor/WelcomePopup.h index 4ed06bfef..ec9b7dd17 100644 --- a/HazardEditor/src/GUI/Window/Editor/WelcomePopup.h +++ b/HazardEditor/src/GUI/Window/Editor/WelcomePopup.h @@ -11,7 +11,6 @@ namespace WindowElement { ~WelcomePopup() = default; void OnWindowRender() override; - virtual void Init() {}; virtual bool OnEvent(Hazard::Event& e) override; private: @@ -20,4 +19,4 @@ namespace WindowElement { private: const char* m_Title = "Popup"; }; -} \ No newline at end of file +} diff --git a/HazardEditor/src/GUI/Window/Inspect/FileView.cpp b/HazardEditor/src/GUI/Window/Inspect/FileView.cpp index 6db589a9c..f4cabc637 100644 --- a/HazardEditor/src/GUI/Window/Inspect/FileView.cpp +++ b/HazardEditor/src/GUI/Window/Inspect/FileView.cpp @@ -205,6 +205,7 @@ namespace WindowElement { case Hazard::AssetType::Image: return Style::ColorAsImVec4(Style::GetStyleColor(ColorType::Critical)); case Hazard::AssetType::EnvironmentMap: return Style::ColorAsImVec4(Style::GetStyleColor(ColorType::Primary)); case Hazard::AssetType::PhysicsMaterial: return Style::ColorAsImVec4(Style::GetStyleColor(ColorType::Primary)); + default: return Style::ColorAsImVec4(Style::GetStyleColor(ColorType::Text)); } } Ref FileView::GetFileImageFromType(const AssetMetadata& metadata) @@ -218,9 +219,10 @@ namespace WindowElement { case Hazard::AssetType::AudioClip: case Hazard::AssetType::EnvironmentMap: case Hazard::AssetType::PhysicsMaterial: - return m_Images["folder"]; + return m_Images["logo"]; + default: + return m_Images["logo"]; } - return m_Images["logo"]; } void FileView::UpdateFolderData() { diff --git a/HazardEditor/src/GUI/Window/Inspect/Properties.h b/HazardEditor/src/GUI/Window/Inspect/Properties.h index 144f1096f..fbbf27652 100644 --- a/HazardEditor/src/GUI/Window/Inspect/Properties.h +++ b/HazardEditor/src/GUI/Window/Inspect/Properties.h @@ -11,7 +11,7 @@ namespace WindowElement { Properties(); ~Properties() = default; - void Init(); + void Init() override; void OnUpdate() override; void OnWindowRender() override; bool OnEvent(Event& e) override; @@ -24,4 +24,4 @@ namespace WindowElement { Hazard::ECS::Entity m_SelectionContext; bool m_Locked = false; }; -} \ No newline at end of file +} diff --git a/HazardEditor/src/Library/DragDropUtils.cpp b/HazardEditor/src/Library/DragDropUtils.cpp index cac944017..14eef30fc 100644 --- a/HazardEditor/src/Library/DragDropUtils.cpp +++ b/HazardEditor/src/Library/DragDropUtils.cpp @@ -1,4 +1,3 @@ -#pragma once #include #include "DragDropUtils.h" @@ -35,4 +34,4 @@ namespace WindowElement if (ext == "obj") return "Mesh"; return "HAZARD_NULL"; } -} \ No newline at end of file +} diff --git a/HazardEditor/src/Library/Input.cpp b/HazardEditor/src/Library/Input.cpp index 75136fdc4..e282aa7b8 100644 --- a/HazardEditor/src/Library/Input.cpp +++ b/HazardEditor/src/Library/Input.cpp @@ -1,4 +1,3 @@ -#pragma once #include "Input.h" #include "Style.h" @@ -405,7 +404,7 @@ namespace WindowElement { if (meta.Has()) { Style::SelectFont(1); - ImGui::Text(meta.Get().Header.c_str()); + ImGui::Text("%s", meta.Get().Header.c_str()); ImGui::PopFont(); } @@ -417,7 +416,9 @@ namespace WindowElement { if (modified) field->SetValue(value, runtime); } + default: + return false; } return modified; } -} \ No newline at end of file +} diff --git a/HazardEditor/src/Library/Layout/ContextMenus.cpp b/HazardEditor/src/Library/Layout/ContextMenus.cpp index 1c2f8e68a..8e97866dd 100644 --- a/HazardEditor/src/Library/Layout/ContextMenus.cpp +++ b/HazardEditor/src/Library/Layout/ContextMenus.cpp @@ -1,5 +1,3 @@ -#pragma once - #include "ContextMenus.h" #include "Layout.h" diff --git a/HazardEditor/src/Library/Layout/Dockspace.cpp b/HazardEditor/src/Library/Layout/Dockspace.cpp index c6a9ab65e..f2597b690 100644 --- a/HazardEditor/src/Library/Layout/Dockspace.cpp +++ b/HazardEditor/src/Library/Layout/Dockspace.cpp @@ -1,4 +1,3 @@ -#pragma once #include "Dockspace.h" @@ -334,4 +333,4 @@ namespace ImGui return TreeNodeWithIcon(icon, window->GetID(label), flags, label, NULL, iconTint); } -} \ No newline at end of file +} diff --git a/HazardEditor/src/Library/Layout/Layout.cpp b/HazardEditor/src/Library/Layout/Layout.cpp index 4e52484c5..8b6c26f2e 100644 --- a/HazardEditor/src/Library/Layout/Layout.cpp +++ b/HazardEditor/src/Library/Layout/Layout.cpp @@ -92,11 +92,11 @@ namespace WindowLayout } void Layout::Text(const std::string& text) { - ImGui::Text(text.c_str()); + ImGui::Text("%s", text.c_str()); } void Layout::TextColored(const char* text, const Color& color) { - ImGui::TextColored(Style::ColorAsImVec4(color), text); + ImGui::TextColored(Style::ColorAsImVec4(color), "%s", text); } void Layout::NextLine(float height) { diff --git a/HazardEditor/src/Library/Layout/Layout.h b/HazardEditor/src/Library/Layout/Layout.h index 3a17f5207..d92763af8 100644 --- a/HazardEditor/src/Library/Layout/Layout.h +++ b/HazardEditor/src/Library/Layout/Layout.h @@ -88,7 +88,7 @@ namespace WindowLayout ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2{ 4, 4 }); float lineHeight = GImGui->Font->FontSize + GImGui->Style.FramePadding.y * 2.0f; ImGui::Separator(); - bool open = ImGui::TreeNodeEx((void*)name, flags, name); + bool open = ImGui::TreeNodeEx((void*)name, flags, "%s", name); bool removed = false; ImGui::PopStyleVar(); diff --git a/HazardEditor/src/Library/Style.cpp b/HazardEditor/src/Library/Style.cpp index 4a1c245d4..6fa6b085a 100644 --- a/HazardEditor/src/Library/Style.cpp +++ b/HazardEditor/src/Library/Style.cpp @@ -1,4 +1,3 @@ -#pragma once #include "Style.h" @@ -63,6 +62,7 @@ ImVec4 Style::AssetTypeColor(Hazard::AssetType type) case AssetType::Mesh: return ColorAsImVec4(GetStyleColor(ColorType::Info)); case AssetType::PhysicsMaterial: return ColorAsImVec4(GetStyleColor(ColorType::Primary)); case AssetType::EnvironmentMap: return ColorAsImVec4(Style::GetStyleColor(ColorType::Trace)); + default: return ColorAsImVec4(GetStyleColor(ColorType::Text)); } } ImGuiTreeNodeFlags Style::GetTreeNodeDefaultFlags() diff --git a/log b/log index a315eae82..addb85658 100644 --- a/log +++ b/log @@ -1,60 +1,89 @@ -In file included from src/Hazard/Entity/WorldHandler.cpp:5: -src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -15 warnings generated. -In file included from src/Core/HazardEditor.cpp:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +src/cocoa_monitor.m:48:38: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] + if (IOServiceGetMatchingServices(kIOMasterPortDefault, + ^~~~~~~~~~~~~~~~~~~~ + kIOMainPortDefault +/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here +const mach_port_t kIOMasterPortDefault + ^ +src/cocoa_monitor.m:246:38: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] + if (IOServiceGetMatchingServices(kIOMasterPortDefault, + ^~~~~~~~~~~~~~~~~~~~ + kIOMainPortDefault +/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here +const mach_port_t kIOMasterPortDefault + ^ +2 warnings generated. +src/cocoa_window.m:357:62: warning: 'kUTTypeURL' is deprecated: first deprecated in macOS 12.0 - Use UTTypeURL instead. [-Wdeprecated-declarations] + [self registerForDraggedTypes:@[(__bridge NSString*) kUTTypeURL]]; + ^ +/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h:210:26: note: 'kUTTypeURL' has been explicitly marked deprecated here +extern const CFStringRef kUTTypeURL API_DEPRECATED("Use UTTypeURL instead.", ios(3.0, 15.0), macos(10.4, 12.0), tvos(9.0, 15.0), watchos(1.0, 8.0)); + ^ +1 warning generated. +In file included from src/Hazard/Core/CommandLineArgs.cpp:3: +src/Hazard/Core/CommandLineArgs.h:32:15: warning: explicit specialization cannot have a storage class + static bool Get(const std::string& key) + ~~~~~~~ ^ +src/Hazard/Core/CommandLineArgs.h:37:22: warning: explicit specialization cannot have a storage class + static std::string Get(const std::string& key) + ~~~~~~~ ^ +src/Hazard/Core/CommandLineArgs.h:44:35: warning: explicit specialization cannot have a storage class + static std::vector Get(const std::string& key) + ~~~~~~~ ^ +src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class + static RenderAPI Get(const std::string& key) { + ~~~~~~~ ^ +4 warnings generated. +In file included from src/Scripting/CSharp/AttributeBuilder.cpp:2: +In file included from src/Scripting/CSharp/AttributeBuilder.h:3: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +1 warning generated. +In file included from src/Scripting/CSharp/CSharpEngine.cpp:4: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +1 warning generated. +In file included from src/Scripting/CSharp/CSharpField.cpp:5: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +1 warning generated. +In file included from src/Scripting/CSharp/CSharpScript.cpp:5: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +1 warning generated. +In file included from src/Scripting/CSharp/Mono/Mono.cpp:3: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +src/Scripting/CSharp/Mono/Mono.cpp:104:61: warning: implicit conversion of NULL constant to 'mono_bool' (aka 'int') [-Wnull-conversion] + MonoMethodDesc* desc = mono_method_desc_new(name.c_str(), NULL); + ~~~~~~~~~~~~~~~~~~~~ ^~~~ + 0 +src/Scripting/CSharp/Mono/Mono.cpp:111:61: warning: implicit conversion of NULL constant to 'mono_bool' (aka 'int') [-Wnull-conversion] + MonoMethodDesc* desc = mono_method_desc_new(name.c_str(), NULL); + ~~~~~~~~~~~~~~~~~~~~ ^~~~ + 0 +src/Scripting/CSharp/Mono/Mono.cpp:299:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] + domain = mono_domain_create_appdomain("Hazard-runtime", nullptr); + ^ +4 warnings generated. +In file included from src/Scripting/CSharp/Script/Hazard/ECS/EntityBindings.cpp:7: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +1 warning generated. +In file included from src/Scripting/CSharp/ScriptUtils.cpp:4: +src/Scripting/CSharp/Mono/Mono.h:87:22: warning: explicit specialization cannot have a storage class + static std::string GetFieldValue(MonoObject* object, MonoClassField* field) { + ~~~~~~~ ^ +src/Scripting/CSharp/ScriptUtils.cpp:59:14: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] + char* a = "NULL"; + ^ +2 warnings generated. In file included from src/Core/HazardEditor.cpp:3: In file included from src/Core/HazardEditor.h:3: In file included from ../Hazard/src/Hazard.h:9: @@ -70,96 +99,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/Core/HazardEditor.cpp:3: -In file included from src/Core/HazardEditor.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/Core/HazardEditor.cpp:4: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/Core/HazardEditor.cpp:4: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/Core/HazardEditor.cpp:4: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -24 warnings generated. -In file included from src/Core/SceneRuntimeHandler.cpp:2: -In file included from src/Core/SceneRuntimeHandler.h:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/Core/SceneRuntimeHandler.cpp:3: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. In file included from src/Core/SceneRuntimeHandler.cpp:3: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -176,115 +116,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/Core/SceneRuntimeHandler.cpp:3: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/Core/SceneRuntimeHandler.cpp:3: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/Core/SceneRuntimeHandler.cpp:3: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/Core/SceneRuntimeHandler.cpp:4: -In file included from src/GUI/Window/AllWindows.h:6: -src/GUI/Window/Editor/WelcomePopup.h:14:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/EditorPopup.h:14:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/Core/SceneRuntimeHandler.cpp:4: -In file included from src/GUI/Window/AllWindows.h:17: -src/GUI/Window/Inspect/Properties.h:14:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -src/GUI/EditorWindow.h:15:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/Core/SceneRuntimeHandler.cpp:4: -In file included from src/GUI/Window/AllWindows.h:28: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -27 warnings generated. -In file included from src/GUI/EditorPopup.cpp:2: -In file included from src/GUI/EditorPopup.h:3: -In file included from src/GUI/RenderableElement.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/EditorPopup.cpp:3: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. In file included from src/GUI/EditorPopup.cpp:3: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -301,82 +133,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/EditorPopup.cpp:3: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/EditorPopup.cpp:3: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/EditorPopup.cpp:3: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -24 warnings generated. -In file included from src/GUI/EditorTabWindow.cpp:2: -In file included from src/GUI/EditorTabWindow.h:3: -In file included from src/GUI/RenderableElement.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +4 warnings generated. In file included from src/GUI/EditorTabWindow.cpp:2: In file included from src/GUI/EditorTabWindow.h:4: In file included from ../Hazard/src/Hazard.h:9: @@ -392,105 +149,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/EditorTabWindow.cpp:2: -In file included from src/GUI/EditorTabWindow.h:4: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/EditorTabWindow.cpp:2: -In file included from src/GUI/EditorTabWindow.h:5: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/EditorTabWindow.cpp:2: -In file included from src/GUI/EditorTabWindow.h:5: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/EditorTabWindow.cpp:2: -In file included from src/GUI/EditorTabWindow.h:5: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/EditorTabWindow.cpp:2: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -25 warnings generated. -In file included from src/GUI/EditorView.cpp:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/EditorView.cpp:3: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. In file included from src/GUI/EditorView.cpp:3: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -507,129 +166,11 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/EditorView.cpp:3: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/EditorView.cpp:3: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/EditorView.cpp:3: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/EditorView.cpp:7: -In file included from src/GUI/Window/AllWindows.h:6: -src/GUI/Window/Editor/WelcomePopup.h:14:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/EditorPopup.h:14:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/EditorView.cpp:7: -In file included from src/GUI/Window/AllWindows.h:17: -src/GUI/Window/Inspect/Properties.h:14:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -src/GUI/EditorWindow.h:15:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/EditorView.cpp:7: -In file included from src/GUI/Window/AllWindows.h:28: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ src/GUI/EditorView.cpp:12:10: warning: non-portable path to file ''; specified path differs in case from file name on disk [-Wnonportable-include-path] #include ^~~~~~~~~~~~~~ -src/GUI/EditorView.cpp:162:22: warning: 6 enumeration values not handled in switch: 'Auto', 'OpenGL', 'Vulkan'... [-Wswitch] - switch (m_Context->GetCurrentAPI()) - ^ -src/GUI/EditorView.cpp:162:22: note: add missing switch cases - switch (m_Context->GetCurrentAPI()) - ^ -29 warnings generated. -In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:2: -In file included from src/GUI/Window/Debug/AudioEngineDebug.h:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:2: -In file included from src/GUI/Window/Debug/AudioEngineDebug.h:3: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:5: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" +5 warnings generated. In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:7: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -646,94 +187,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:7: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:7: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Debug/AudioEngineDebug.cpp:7: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -25 warnings generated. -In file included from src/GUI/Window/Debug/Console.cpp:2: -In file included from src/GUI/Window/Debug/Console.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Debug/Console.cpp:2: -In file included from src/GUI/Window/Debug/Console.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Debug/Console.cpp:5: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" +4 warnings generated. In file included from src/GUI/Window/Debug/Console.cpp:7: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -750,102 +204,15 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Debug/Console.cpp:7: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Debug/Console.cpp:7: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Debug/Console.cpp:7: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/Debug/Console.cpp:8: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -26 warnings generated. -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:2: -In file included from src/GUI/Window/Debug/ScriptEngineDebug.h:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:2: -In file included from src/GUI/Window/Debug/ScriptEngineDebug.h:3: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:5: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" +4 warnings generated. +src/GUI/Window/Debug/Profiler.cpp:31:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(ss.str().c_str()); + ^~~~~~~~~~~~~~~~ +src/GUI/Window/Debug/Profiler.cpp:31:16: note: treat the string as an argument to avoid this + ImGui::Text(ss.str().c_str()); + ^ + "%s", +1 warning generated. In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:7: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -862,116 +229,53 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:7: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:7: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:7: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/Debug/ScriptEngineDebug.cpp:8: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -26 warnings generated. -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:2: -In file included from src/GUI/Window/Editor/WelcomePopup.h:3: -In file included from src/GUI/EditorPopup.h:3: -In file included from src/GUI/RenderableElement.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:2: -src/GUI/Window/Editor/WelcomePopup.h:14:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/EditorPopup.h:14:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:3: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" +4 warnings generated. +src/GUI/Window/Editor/BuildWindow.cpp:3:10: warning: non-portable path to file '"Library/Layout/Layout.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] +#include "library/Layout/Layout.h" + ^~~~~~~~~~~~~~~~~~~~~~~~~ + "Library/Layout/Layout.h" +src/GUI/Window/Editor/BuildWindow.cpp:60:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(ss.str().c_str()); + ^~~~~~~~~~~~~~~~ +src/GUI/Window/Editor/BuildWindow.cpp:60:16: note: treat the string as an argument to avoid this + ImGui::Text(ss.str().c_str()); + ^ + "%s", +src/GUI/Window/Editor/BuildWindow.cpp:80:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(Hazard::Utils::AssetTypeToString(type)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/GUI/Window/Editor/BuildWindow.cpp:80:17: note: treat the string as an argument to avoid this + ImGui::Text(Hazard::Utils::AssetTypeToString(type)); + ^ + "%s", +src/GUI/Window/Editor/BuildWindow.cpp:94:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(resources.FileName.c_str()); + ^~~~~~~~~~~~~~~~~~~~~~~~~~ +src/GUI/Window/Editor/BuildWindow.cpp:94:18: note: treat the string as an argument to avoid this + ImGui::Text(resources.FileName.c_str()); + ^ + "%s", +src/GUI/Window/Editor/BuildWindow.cpp:149:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(world.Path.string().c_str()); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/GUI/Window/Editor/BuildWindow.cpp:149:17: note: treat the string as an argument to avoid this + ImGui::Text(world.Path.string().c_str()); + ^ + "%s", +5 warnings generated. +src/GUI/Window/Editor/SettingsView.cpp:96:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(File::GetNameNoExt(manager.GetProject().StartupWorld).c_str()); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/GUI/Window/Editor/SettingsView.cpp:96:15: note: treat the string as an argument to avoid this + ImGui::Text(File::GetNameNoExt(manager.GetProject().StartupWorld).c_str()); + ^ + "%s", +1 warning generated. src/GUI/Window/Editor/WelcomePopup.cpp:4:10: warning: non-portable path to file '"GUI/EditorView.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "Gui/EditorView.h" ^~~~~~~~~~~~~~~~~~ "GUI/EditorView.h" In file included from src/GUI/Window/Editor/WelcomePopup.cpp:4: -In file included from src/Gui/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:4: In file included from src/Gui/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: In file included from ../Hazard/src/Hazard.h:9: @@ -987,89 +291,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:4: -In file included from src/Gui/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:4: -src/Gui/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Editor/WelcomePopup.cpp:4: -src/Gui/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -27 warnings generated. -In file included from src/GUI/Window/Inspect/FileView.cpp:2: -In file included from src/GUI/EditorView.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Inspect/FileView.cpp:2: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +5 warnings generated. In file included from src/GUI/Window/Inspect/FileView.cpp:2: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -1086,89 +308,6 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/FileView.cpp:2: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/FileView.cpp:2: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Inspect/FileView.cpp:2: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/Inspect/FileView.cpp:4: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -src/GUI/Window/Inspect/FileView.cpp:200:11: warning: enumeration values 'Mesh' and 'Script' not handled in switch [-Wswitch] - switch (metadata.Type) - ^ -src/GUI/Window/Inspect/FileView.cpp:200:11: note: add missing switch cases - switch (metadata.Type) - ^ -src/GUI/Window/Inspect/FileView.cpp:209:2: warning: non-void function does not return a value in all control paths [-Wreturn-type] - } - ^ -src/GUI/Window/Inspect/FileView.cpp:212:11: warning: enumeration values 'Undefined', 'Mesh', and 'Script' not handled in switch [-Wswitch] - switch (metadata.Type) - ^ -src/GUI/Window/Inspect/FileView.cpp:212:11: note: add missing switch cases - switch (metadata.Type) - ^ In file included from src/GUI/Window/Inspect/FileView.cpp:6: src/Library/Input.h:35:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ImGui::TextWrapped(name); @@ -1190,18 +329,7 @@ src/Library/Input.h:35:23: note: treat the string as an argument to avoid this ImGui::TextWrapped(name); ^ "%s", -30 warnings generated. -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:2: -In file included from src/GUI/Window/Inspect/Hierarchy.h:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +6 warnings generated. In file included from src/GUI/Window/Inspect/Hierarchy.cpp:2: In file included from src/GUI/Window/Inspect/Hierarchy.h:3: In file included from src/Core/EditorEvent.h:3: @@ -1218,103 +346,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:2: -In file included from src/GUI/Window/Inspect/Hierarchy.h:3: -In file included from src/Core/EditorEvent.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:2: -In file included from src/GUI/Window/Inspect/Hierarchy.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:3: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:3: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:5: -In file included from src/Library/Input.h:4: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -In file included from src/GUI/Window/Inspect/Hierarchy.cpp:12: -In file included from src/GUI/Window/Inspect/../Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -26 warnings generated. -In file included from src/GUI/Window/Inspect/MaterialInspector.cpp:2: -In file included from src/GUI/Window/Inspect/MaterialInspector.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +4 warnings generated. In file included from src/GUI/Window/Inspect/MaterialInspector.cpp:2: In file included from src/GUI/Window/Inspect/MaterialInspector.h:4: In file included from src/Core/EditorEvent.h:3: @@ -1331,69 +363,6 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/MaterialInspector.cpp:2: -In file included from src/GUI/Window/Inspect/MaterialInspector.h:4: -In file included from src/Core/EditorEvent.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/MaterialInspector.cpp:2: -In file included from src/GUI/Window/Inspect/MaterialInspector.h:5: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Inspect/MaterialInspector.cpp:3: -In file included from src/Library/Input.h:4: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" src/GUI/Window/Inspect/MaterialInspector.cpp:21:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ImGui::Text(selectionContext.GetTag().Tag.c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1401,170 +370,7 @@ src/GUI/Window/Inspect/MaterialInspector.cpp:21:15: note: treat the string as an ImGui::Text(selectionContext.GetTag().Tag.c_str()); ^ "%s", -In file included from src/GUI/Window/Inspect/MaterialInspector.cpp:3: -In file included from src/Library/Input.h:4: -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:22:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:39:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:69:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:122:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:150:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:161:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:183:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:205:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:239:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:279:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:291:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:342:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:367:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:408:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:433:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -39 warnings generated. -In file included from src/GUI/Window/Inspect/Properties.cpp:2: -In file included from src/GUI/Window/Inspect/Properties.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +5 warnings generated. In file included from src/GUI/Window/Inspect/Properties.cpp:2: In file included from src/GUI/Window/Inspect/Properties.h:4: In file included from src/Core/EditorEvent.h:3: @@ -1581,252 +387,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/Properties.cpp:2: -In file included from src/GUI/Window/Inspect/Properties.h:4: -In file included from src/Core/EditorEvent.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Inspect/Properties.cpp:2: -In file included from src/GUI/Window/Inspect/Properties.h:5: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Inspect/Properties.cpp:2: -src/GUI/Window/Inspect/Properties.h:14:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -src/GUI/EditorWindow.h:15:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Inspect/Properties.cpp:3: -In file included from src/Library/Input.h:4: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:22:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:39:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:69:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:122:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:150:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:161:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:183:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:205:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:239:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:279:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:291:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:342:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:367:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:408:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -src/Library/Layout/Layout.h:91:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security] - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^~~~ -src/Library/ComponentDraw.h:433:11: note: in instantiation of function template specialization 'WindowLayout::Layout::ComponentTreenode' requested here - Layout::ComponentTreenode(entity, name, [&]() { - ^ -src/Library/Layout/Layout.h:91:54: note: treat the string as an argument to avoid this - bool open = ImGui::TreeNodeEx((void*)name, flags, name); - ^ - "%s", -39 warnings generated. -In file included from src/GUI/Window/MenuBar.cpp:2: -In file included from src/GUI/Window/MenuBar.h:3: -In file included from src/GUI/RenderableElement.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/MenuBar.cpp:4: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -In file included from src/GUI/Window/MenuBar.cpp:9: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. In file included from src/GUI/Window/MenuBar.cpp:9: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -1843,94 +404,6 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/MenuBar.cpp:9: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/MenuBar.cpp:9: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/MenuBar.cpp:9: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/MenuBar.cpp:10: -In file included from src/GUI/Window/AllWindows.h:6: -src/GUI/Window/Editor/WelcomePopup.h:14:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/EditorPopup.h:14:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/MenuBar.cpp:10: -In file included from src/GUI/Window/AllWindows.h:17: -src/GUI/Window/Inspect/Properties.h:14:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -src/GUI/EditorWindow.h:15:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/MenuBar.cpp:10: -In file included from src/GUI/Window/AllWindows.h:28: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ src/GUI/Window/MenuBar.cpp:76:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ImGui::Text(projectName.c_str()); ^~~~~~~~~~~~~~~~~~~ @@ -1938,28 +411,7 @@ src/GUI/Window/MenuBar.cpp:76:15: note: treat the string as an argument to avoid ImGui::Text(projectName.c_str()); ^ "%s", -29 warnings generated. -In file included from src/GUI/Window/Rendering/Performance.cpp:2: -In file included from src/GUI/Window/Rendering/Performance.h:3: -In file included from src/GUI/EditorWindow.h:3: -In file included from src/GUI/RenderableElement.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Rendering/Performance.cpp:2: -In file included from src/GUI/Window/Rendering/Performance.h:3: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +5 warnings generated. In file included from src/GUI/Window/Rendering/Performance.cpp:2: In file included from src/GUI/Window/Rendering/Performance.h:4: In file included from ../Hazard/src/Hazard.h:9: @@ -1975,71 +427,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Rendering/Performance.cpp:2: -In file included from src/GUI/Window/Rendering/Performance.h:4: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Rendering/Performance.cpp:3: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -23 warnings generated. -In file included from src/GUI/Window/Rendering/TransformationGizmo.cpp:2: -In file included from src/GUI/Window/Rendering/TransformationGizmo.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +4 warnings generated. In file included from src/GUI/Window/Rendering/TransformationGizmo.cpp:2: In file included from src/GUI/Window/Rendering/TransformationGizmo.h:5: In file included from src/Core/EditorEvent.h:3: @@ -2056,75 +444,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Rendering/TransformationGizmo.cpp:2: -In file included from src/GUI/Window/Rendering/TransformationGizmo.h:5: -In file included from src/Core/EditorEvent.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -21 warnings generated. -In file included from src/GUI/Window/Rendering/Viewport.cpp:2: -In file included from src/GUI/Window/Rendering/Viewport.h:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Rendering/Viewport.cpp:2: -In file included from src/GUI/Window/Rendering/Viewport.h:3: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. In file included from src/GUI/Window/Rendering/Viewport.cpp:2: In file included from src/GUI/Window/Rendering/Viewport.h:4: In file included from src/GUI/Window/Rendering/TransformationGizmo.h:5: @@ -2142,86 +462,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Rendering/Viewport.cpp:2: -In file included from src/GUI/Window/Rendering/Viewport.h:4: -In file included from src/GUI/Window/Rendering/TransformationGizmo.h:5: -In file included from src/Core/EditorEvent.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Rendering/Viewport.cpp:3: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -In file included from src/GUI/Window/Rendering/Viewport.cpp:8: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Rendering/Viewport.cpp:8: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -25 warnings generated. -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:2: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +4 warnings generated. In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:3: In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: In file included from src/GUI/EditorTabWindow.h:4: @@ -2238,121 +479,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:3: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -In file included from src/GUI/EditorTabWindow.h:4: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:3: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -In file included from src/GUI/EditorTabWindow.h:5: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:3: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -In file included from src/GUI/EditorTabWindow.h:5: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:3: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -In file included from src/GUI/EditorTabWindow.h:5: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:3: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:5: -In file included from src/GUI/Window/AllWindows.h:6: -src/GUI/Window/Editor/WelcomePopup.h:14:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/EditorPopup.h:14:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Tabs/EditorMainTab.cpp:5: -In file included from src/GUI/Window/AllWindows.h:17: -src/GUI/Window/Inspect/Properties.h:14:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -src/GUI/EditorWindow.h:15:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -27 warnings generated. -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: -In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: -In file included from src/GUI/EditorTabWindow.h:3: -In file included from src/GUI/RenderableElement.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ +4 warnings generated. In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: In file included from src/GUI/EditorTabWindow.h:4: @@ -2369,132 +496,7 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: -In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: -In file included from src/GUI/EditorTabWindow.h:4: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: -In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: -In file included from src/GUI/EditorTabWindow.h:5: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: -In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: -In file included from src/GUI/EditorTabWindow.h:5: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: -In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: -In file included from src/GUI/EditorTabWindow.h:5: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:2: -In file included from src/GUI/Window/Tabs/NodeGraphTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:3: -In file included from src/GUI/Window/AllWindows.h:6: -src/GUI/Window/Editor/WelcomePopup.h:14:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/EditorPopup.h:14:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/GUI/Window/Tabs/NodeGraphTab.cpp:3: -In file included from src/GUI/Window/AllWindows.h:17: -src/GUI/Window/Inspect/Properties.h:14:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -src/GUI/EditorWindow.h:15:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -27 warnings generated. -In file included from src/GUI/Window/Toolbar.cpp:2: -In file included from src/GUI/Window/Toolbar.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/GUI/Window/Toolbar.cpp:4: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -In file included from src/GUI/Window/Toolbar.cpp:7: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. In file included from src/GUI/Window/Toolbar.cpp:7: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -2511,69 +513,6 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/GUI/Window/Toolbar.cpp:7: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/GUI/Window/Toolbar.cpp:7: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/GUI/Window/Toolbar.cpp:7: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ src/GUI/Window/Toolbar.cpp:10:10: warning: non-portable path to file '"GUI/Window/Rendering/Viewport.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "Gui/Window/Rendering/Viewport.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2586,22 +525,59 @@ src/GUI/Window/Toolbar.cpp:12:10: warning: non-portable path to file '"GUI/Windo #include "Gui/Window/Rendering/WorldEnvironmentData.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "GUI/Window/Rendering/WorldEnvironmentData.h" -28 warnings generated. -src/Library/Layout/ContextMenus.cpp:1:9: warning: #pragma once in main file [-Wpragma-once-outside-header] -#pragma once - ^ -In file included from src/Library/Layout/ContextMenus.cpp:4: -In file included from src/Library/Layout/ContextMenus.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/Library/Layout/ContextMenus.cpp:4: +7 warnings generated. +src/Library/DragDropUtils.cpp:15:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(text.c_str()); + ^~~~~~~~~~~~ +src/Library/DragDropUtils.cpp:15:16: note: treat the string as an argument to avoid this + ImGui::Text(text.c_str()); + ^ + "%s", +src/Library/DragDropUtils.cpp:16:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(type); + ^~~~ +src/Library/DragDropUtils.cpp:16:16: note: treat the string as an argument to avoid this + ImGui::Text(type); + ^ + "%s", +2 warnings generated. +In file included from src/Library/Input.cpp:11: +../Hazard/src/Platform/Rendering/OpenGL/Textures/OpenGLTexture2D.h:16:16: warning: 'Resize' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] + virtual void Resize(uint32_t width, uint32_t height) {}; + ^ +../Hazard/src/Hazard/Rendering/Texture.h:38:16: note: overridden virtual function is here + virtual void Resize(uint32_t width, uint32_t height) = 0; + ^ +In file included from src/Library/Input.cpp:11: +../Hazard/src/Platform/Rendering/OpenGL/Textures/OpenGLTexture2D.h:17:18: warning: 'GetWriteBuffer' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] + virtual Buffer GetWriteBuffer() { return Buffer(); }; + ^ +../Hazard/src/Hazard/Rendering/Texture.h:39:18: note: overridden virtual function is here + virtual Buffer GetWriteBuffer() = 0; + ^ +In file included from src/Library/Input.cpp:11: +../Hazard/src/Platform/Rendering/OpenGL/Textures/OpenGLTexture2D.h:18:16: warning: 'Loaded' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] + virtual bool Loaded() const { return m_Loaded; }; + ^ +../Hazard/src/Hazard/Rendering/Texture.h:40:16: note: overridden virtual function is here + virtual bool Loaded() const = 0; + ^ +In file included from src/Library/Input.cpp:11: +../Hazard/src/Platform/Rendering/OpenGL/Textures/OpenGLTexture2D.h:21:12: warning: 'GetID' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] + uint32_t GetID() const { return m_ID; } + ^ +../Hazard/src/Hazard/Rendering/Texture.h:33:20: note: overridden virtual function is here + virtual uint32_t GetID() const = 0; + ^ +In file included from src/Library/Input.cpp:11: +../Hazard/src/Platform/Rendering/OpenGL/Textures/OpenGLTexture2D.h:25:46: warning: returning reference to local temporary object [-Wreturn-stack-address] + virtual const Buffer& GetBuffer() { return Buffer(); } + ^~~~~~~~ +src/Library/Input.cpp:345:29: warning: cast to 'void *' from smaller integer type 'uint32_t' (aka 'unsigned int') [-Wint-to-void-pointer-cast] + return ImGui::ImageButton((ImTextureID)image.As()->GetID(), size, {0, 1}, {1, 0}); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +6 warnings generated. +In file included from src/Library/Layout/ContextMenus.cpp:2: In file included from src/Library/Layout/ContextMenus.h:4: In file included from src/GUI/Window/Inspect/FileView.h:2: In file included from ../Hazard/src/Hazard.h:9: @@ -2617,103 +593,22 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/Library/Layout/ContextMenus.cpp:4: -In file included from src/Library/Layout/ContextMenus.h:4: -In file included from src/GUI/Window/Inspect/FileView.h:2: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/Library/Layout/ContextMenus.cpp:4: -In file included from src/Library/Layout/ContextMenus.h:4: -In file included from src/GUI/Window/Inspect/FileView.h:3: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ -In file included from src/Library/Layout/ContextMenus.cpp:5: -src/Library/Layout/Layout.h:6:10: warning: non-portable path to file '"Library/Style.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] -#include "library/Style.h" - ^~~~~~~~~~~~~~~~~ - "Library/Style.h" -In file included from src/Library/Layout/ContextMenus.cpp:6: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/Library/Layout/ContextMenus.cpp:6: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -26 warnings generated. -In file included from src/Project/ProjectManager.cpp:2: -In file included from src/Project/ProjectManager.h:3: -In file included from ../Hazard/src/hzrpch.h:18: -In file included from ../Hazard/src/Hazard/Instrumentor.h:13: -In file included from ../Hazard/src/Hazard/Utils/File.h:3: -../Hazard/src/Hazard/Core/Buffer.h:16:5: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -../Hazard/src/Hazard/Core/Buffer.h:27:4: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete] - delete[] Data; - ^ ~~~~ -In file included from src/Project/ProjectManager.cpp:3: -In file included from src/GUI/EditorView.h:4: -src/GUI/EditorWindow.h:15:16: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual void Init() {}; - ^ -src/GUI/RenderableElement.h:13:16: note: overridden virtual function is here - virtual void Init() {}; - ^ +4 warnings generated. +src/Library/Layout/Layout.cpp:95:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::Text(text.c_str()); + ^~~~~~~~~~~~ +src/Library/Layout/Layout.cpp:95:21: note: treat the string as an argument to avoid this + ImGui::Text(text.c_str()); + ^ + "%s", +src/Library/Layout/Layout.cpp:99:57: warning: format string is not a string literal (potentially insecure) [-Wformat-security] + ImGui::TextColored(Style::ColorAsImVec4(color), text); + ^~~~ +src/Library/Layout/Layout.cpp:99:57: note: treat the string as an argument to avoid this + ImGui::TextColored(Style::ColorAsImVec4(color), text); + ^ + "%s", +2 warnings generated. In file included from src/Project/ProjectManager.cpp:3: In file included from src/GUI/EditorView.h:7: In file included from src/Platform/EditorGuiPlatform.h:3: @@ -2730,83 +625,8 @@ In file included from ../Hazard/src/Hazard.h:9: ../Hazard/src/Hazard/Core/CommandLineArgs.h:49:20: warning: explicit specialization cannot have a storage class static RenderAPI Get(const std::string& key) { ~~~~~~~ ^ -In file included from src/Project/ProjectManager.cpp:3: -In file included from src/GUI/EditorView.h:7: -In file included from src/Platform/EditorGuiPlatform.h:3: -In file included from ../Hazard/src/Hazard.h:41: -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:91:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TagComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:99:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, TransformComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:108:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CameraComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:117:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, ScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:124:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, VisualScriptComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:131:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SkyLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:139:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, DirectionalLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:147:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, PointLightComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:156:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, AudioSourceComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:168:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, MeshComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:175:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, SpriteRendererComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:186:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, Rigidbody2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:195:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BoxCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:208:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, CircleCollider2DComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -../Hazard/src/Hazard/Entity/Loader/WorldSerializer.h:221:14: warning: explicit specialization cannot have a storage class - static void SerializeComponentEditor(Entity& entity, BatchComponent& component, YAML::Emitter& out) - ~~~~~~~ ^ -In file included from src/Project/ProjectManager.cpp:3: -src/GUI/EditorView.h:16:8: warning: 'Init' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - void Init(); - ^ -../Hazard/src/Hazard/Module.h:11:16: note: overridden virtual function is here - virtual void Init() {} - ^ -In file included from src/Project/ProjectManager.cpp:3: -src/GUI/EditorView.h:19:8: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - bool OnEvent(Hazard::Event& e); - ^ -../Hazard/src/Hazard/Module.h:17:16: note: overridden virtual function is here - virtual bool OnEvent(Event& e) { return false; } - ^ -In file included from src/Project/ProjectManager.cpp:5: -In file included from src/GUI/Window/Tabs/EditorMainTab.h:3: -src/GUI/EditorTabWindow.h:17:16: warning: 'OnEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] - virtual bool OnEvent(Event& e) = 0; - ^ -src/GUI/RenderableElement.h:19:16: note: overridden virtual function is here - virtual bool OnEvent(Hazard::Event& e) { return false; }; - ^ -25 warnings generated. -ld: warning: ignoring file /usr/local/homebrew/Cellar/mono/6.12.0.122/lib/libmono-2.0.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 -Undefined symbols for architecture arm64: - "Hazard::ECS::Loader::WorldDeserializer::WorldDeserializer()", referenced from: - Hazard::ECS::WorldHandler::LoadWorld(std::__1::basic_string, std::__1::allocator > const&, Hazard::ECS::Serialization) in libHazard.a(WorldHandler.o) -ld: symbol(s) not found for architecture arm64 +4 warnings generated. +ld: can't write output file to '../bin/Debug-macosx-universal/HazardEditor/HazardEditor.app' because that path is a directory clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [../bin/Debug-macosx-universal/HazardEditor/HazardEditor.app] Error 1 make: *** [HazardEditor] Error 2