From 027a47e3a8e84cab1eb26525741103f82f7f7743 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Fri, 20 Mar 2020 16:54:49 +0100 Subject: [PATCH] core/thread_flags: remove #error from header file This commit removes the #error from the thread_flags header. This #error makes the usage of if(IS_USED(MODULE_THAT_DEPENDS_ON_THREAD_FLAGS)) pattern harder, because the error is triggered each time the header is included. If a module uses any thread_flags function it will fail in link time anyway. --- core/include/thread_flags.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/include/thread_flags.h b/core/include/thread_flags.h index fce32615da..6dfaedee28 100644 --- a/core/include/thread_flags.h +++ b/core/include/thread_flags.h @@ -54,10 +54,6 @@ #ifndef THREAD_FLAGS_H #define THREAD_FLAGS_H -#ifndef MODULE_CORE_THREAD_FLAGS -#error Missing USEMODULE += core_thread_flags -#endif - #include "kernel_types.h" #include "sched.h" /* for thread_t typedef */