From 028e53e99ab6b88f4bdf886e85301a5dab3c3488 Mon Sep 17 00:00:00 2001 From: jason-oliveira Date: Sun, 15 May 2022 22:25:53 -0500 Subject: [PATCH] Remove -Werror from Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All warnings should not be treated as errors. libultraship/Lib/ImGui/imgui_widgets.cpp: In function ‘bool ImGui::TempInputScalar(const ImRect&, ImGuiID, const char*, ImGuiDataType, void*, const char*, const void*, const void*)’: libultraship/Lib/ImGui/imgui_widgets.cpp:3350:67: error: bitwise operation between different enumeration types ‘ImGuiInputTextFlags_’ and ‘ImGuiInputTextFlagsPrivate_’ is deprecated [-Werror=deprecated-enum-enum-conversion] 3350 | ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libultraship/Lib/ImGui/imgui_widgets.cpp: In function ‘bool ImGui::CollapsingHeader(const char*, bool*, ImGuiTreeNodeFlags)’: libultraship/Lib/ImGui/imgui_widgets.cpp:6116:54: error: bitwise operation between different enumeration types ‘ImGuiTreeNodeFlags_’ and ‘ImGuiTreeNodeFlagsPrivate_’ is deprecated [-Werror=deprecated-enum-enum-conversion] 6116 | flags |= ImGuiTreeNodeFlags_AllowItemOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [Makefile:88: build/libultraship/Lib/ImGui/imgui_widgets.o] Error 1 --- libultraship/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libultraship/Makefile b/libultraship/Makefile index d6789db0b..39603854f 100644 --- a/libultraship/Makefile +++ b/libultraship/Makefile @@ -10,7 +10,7 @@ DEBUG ?= 1 OPTFLAGS ?= -O0 LTO ?= 0 -WARN := -Wall -Wextra -Werror \ +WARN := -Wall -Wextra \ -Wno-unused-variable \ -Wno-unused-parameter \ -Wno-unused-function \ @@ -93,4 +93,4 @@ build/%.o: %.c $(LIB): $(O_FILES) $(AR) rcs $@ $^ --include $(D_FILES) \ No newline at end of file +-include $(D_FILES)