diff --git a/backend/Makefile b/backend/Makefile index 5428056..5b2f4e8 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -4,7 +4,7 @@ MAKEFLAGS += -j16 CXX=g++ LD=g++ -CXXFLAGS = -std=c++23 -pedantic-errors -Wall -Wextra -Wconversion +CXXFLAGS = -std=c++23 -pedantic-errors -Wall -Wextra -Wconversion -Wcpp LDFLAGS = libraries = libmosquitto @@ -16,7 +16,7 @@ RELEASE = 0 GDB = 0 ifeq ($(RELEASE),1) - CXXFLAGS += -O3 + CXXFLAGS += -O3 -Werror else CXXFLAGS += -O0 -g -Wno-unused diff --git a/backend/src/main.cpp b/backend/src/main.cpp index d8274fa..a563246 100644 --- a/backend/src/main.cpp +++ b/backend/src/main.cpp @@ -25,7 +25,6 @@ int main(void) { std::println("Starting backend..."); - auto mqtt_client = mst::mqtt::Client( BACKEND_MQTT_HOST, BACKEND_MQTT_PORT, "test", "1234");