From a87da4342fcc8253e6f09169f419f73bdb6ed06e Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Thu, 18 Nov 2021 11:43:49 +0100
Subject: [PATCH] MISC: Always include debug info (in release mode)

+ Also abort when reaching the to be implemented section to filter karas
to update in the repo module
---
 CMakeLists.txt           | 4 ++++
 src/module/module_repo.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0d44e12..2f83d907 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,10 @@ include(TestBigEndian) # Needed for endianness tests
 
 set(LKT_VERSION 2.4)
 
+if(CMAKE_BUILD_TYPE STREQUAL "Release")
+    set(CMAKE_BUILD_TYPE RelWithDebInfo)
+endif()
+
 # Alpho Vivy, CXX only
 project(lektor VERSION ${LKT_VERSION} LANGUAGES C)
 cmake_policy(SET CMP0100 NEW)
diff --git a/src/module/module_repo.c b/src/module/module_repo.c
index ea7e9b5f..6ae22fd3 100644
--- a/src/module/module_repo.c
+++ b/src/module/module_repo.c
@@ -444,6 +444,7 @@ ___handle_got_json_internal_callback(const char *key, const char *val, int comp,
         /* The kara is already present in the DB */
         else {
             LOG_INFO("REPO", "Skip DL of kara %ld because we are in a dry update", kara->id);
+            LOG_UNREACHABLE;
         }
 
         lkt_queue_send(kara->repo->queue, LKT_EVENT_DB_UPDATE_TICK, NULL);
-- 
GitLab