mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
CI: Extra warnings for builds with Clang. Backends: OpenGL3: Fix sign conversion warnings.
This commit is contained in:
parent
dc49b14e29
commit
5af8a8c7e8
2 changed files with 18 additions and 15 deletions
|
|
@ -40,7 +40,10 @@ endif
|
|||
ifeq ($(UNAME_S), Linux) #LINUX
|
||||
ECHO_MESSAGE = "Linux"
|
||||
ifneq ($(WITH_EXTRA_WARNINGS), 0)
|
||||
CXXFLAGS += -Wextra -pedantic
|
||||
CXXFLAGS += -Wextra -Wpedantic
|
||||
ifeq ($(shell $(CXX) -v 2>&1 | grep -c "clang version"), 1)
|
||||
CXXFLAGS += -Wshadow -Wsign-conversion
|
||||
endif
|
||||
endif
|
||||
CFLAGS = $(CXXFLAGS)
|
||||
endif
|
||||
|
|
@ -56,7 +59,7 @@ endif
|
|||
ifeq ($(findstring MINGW,$(UNAME_S)),MINGW)
|
||||
ECHO_MESSAGE = "MinGW"
|
||||
ifneq ($(WITH_EXTRA_WARNINGS), 0)
|
||||
CXXFLAGS += -Wextra -pedantic
|
||||
CXXFLAGS += -Wextra -Wpedantic
|
||||
endif
|
||||
CFLAGS = $(CXXFLAGS)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue