Remove -Werror from Makefile

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
This commit is contained in:
jason-oliveira 2022-05-15 22:25:53 -05:00 committed by GitHub
commit 028e53e99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
-include $(D_FILES)