From d7d939e1c813c3ec038fcc2a15d890db63d616ee Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 10 Jul 2021 12:07:56 +0200 Subject: Fix warnings. --- Makefile | 2 +- tasks.cc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59e883e..3cea400 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ $(DEPFILES): include $(wildcard $(DEPFILES)) -CXXFLAGS = -g -O3 -std=c++17 -I. +CXXFLAGS = -Wall -g -O3 -std=c++17 -I. %.o: %.cc g++ -MMD $(CXXFLAGS) -c $< -o $@ diff --git a/tasks.cc b/tasks.cc index 641e05b..ba2c851 100644 --- a/tasks.cc +++ b/tasks.cc @@ -53,6 +53,10 @@ std::list> taskFactory(const BuildConfiguration& config, switch(target_type) { + case TargetType::Auto: + // The target_type cannot be Auto + break; + case TargetType::StaticLibrary: tasks.emplace_back(std::make_shared(config, settings, config.target, objects)); @@ -72,6 +76,9 @@ std::list> taskFactory(const BuildConfiguration& config, tasks.emplace_back(std::make_shared(config, settings, config.target, objects)); break; + + case TargetType::Object: + break; } return tasks; -- cgit v1.2.3