mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
tidy up flags
This commit is contained in:
17
Makefile
17
Makefile
@@ -97,17 +97,18 @@ CXX := /usr/bin/g++
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
CPPFLAGS += $(DEFINES) $(DEFAULTS) $(INCLUDE)
|
CPPFLAGS += $(DEFINES) $(DEFAULTS) $(INCLUDE)
|
||||||
CPPFLAGS += -ggdb -g3 -O3
|
CPPFLAGS += -ggdb -g3 -O3
|
||||||
|
CPPFLAGS += -MMD
|
||||||
CPPFLAGS += -flto=auto -fno-lto
|
CPPFLAGS += -flto=auto -fno-lto
|
||||||
|
CPPFLAGS += -Wall -Wextra -Werror
|
||||||
|
CPPFLAGS += -Wswitch-enum
|
||||||
|
CPPFLAGS += -Wno-unused-parameter
|
||||||
|
# CPPFLAGS += -Wno-missing-braces
|
||||||
|
# CPPFLAGS += -Wno-sign-compare
|
||||||
|
# CPPFLAGS += -Wno-tautological-constant-out-of-range-compare
|
||||||
|
|
||||||
CFLAGS += $(CPPFLAGS)
|
CFLAGS += $(CPPFLAGS)
|
||||||
CFLAGS += -Wall -Wextra -Werror -Wswitch-enum
|
CXXFLAGS += $(CPPFLAGS)
|
||||||
CFLAGS += -Wno-unused-parameter
|
LDFLAGS =
|
||||||
CFLAGS += -Wno-missing-braces
|
|
||||||
CFLAGS += -Wno-sign-compare
|
|
||||||
CFLAGS += -Wno-tautological-constant-out-of-range-compare
|
|
||||||
CFLAGS += -Wno-stringop-overread
|
|
||||||
|
|
||||||
CXXFLAGS += $(CFLAGS) -MMD
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Compiler & Linker Commands
|
# Compiler & Linker Commands
|
||||||
|
|||||||
Reference in New Issue
Block a user