summaryrefslogtreecommitdiff
path: root/tasks.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-07-10 12:07:56 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-07-10 12:07:56 +0200
commitd7d939e1c813c3ec038fcc2a15d890db63d616ee (patch)
treefda9f007862a5b281221cb53d2423386330623d1 /tasks.cc
parent796cbaf3fdd8fbea96639292f67e0b606cff5e51 (diff)
Fix warnings.
Diffstat (limited to 'tasks.cc')
-rw-r--r--tasks.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks.cc b/tasks.cc
index 641e05b..ba2c851 100644
--- a/tasks.cc
+++ b/tasks.cc
@@ -53,6 +53,10 @@ std::list<std::shared_ptr<Task>> 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<TaskAR>(config, settings, config.target,
objects));
@@ -72,6 +76,9 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
tasks.emplace_back(std::make_shared<TaskLD>(config, settings, config.target,
objects));
break;
+
+ case TargetType::Object:
+ break;
}
return tasks;