From 356f6642cb1f602c60ba668eaf3119d4552cecef Mon Sep 17 00:00:00 2001
From: Martin Larralde <martin.larralde@embl.de>
Date: Sat, 12 Jun 2021 17:22:06 +0200
Subject: [PATCH] Make `omp_get_thread_num` always return 1 in `utils.cpp` to
 silence loggers

---
 pyfastani/_utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyfastani/_utils.cpp b/pyfastani/_utils.cpp
index c3c37c4..a943dd8 100644
--- a/pyfastani/_utils.cpp
+++ b/pyfastani/_utils.cpp
@@ -18,7 +18,7 @@ skch::Map* new_map_with_result_vector(
 }
 
 int omp_get_thread_num(void) {
-    return 0;
+    return 1; // Make the logger shut up.
 }
 
 int omp_get_num_threads(void) {
-- 
GitLab