[PATCH 01/21] Add <assert.h> to shared/thread.c

Valerie Aurora val at versity.com
Tue Feb 11 13:18:56 PST 2025


From: Auke Kok <auke.kok at versity.com>

Fixes `shared/thread.c:31:9: error: implicit declaration of
function ‘assert’ [-Werror=implicit-function-declaration]`.

If you've built urcu with debugging enabled, it will automatically
include <assert.h> for you through an include dependency chain. But
that isn't the default.

Signed-off-by: Auke Kok <auke.kok at versity.com>
---
 shared/thread.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/shared/thread.c b/shared/thread.c
index 26c38c9..d04ff24 100644
--- a/shared/thread.c
+++ b/shared/thread.c
@@ -9,6 +9,7 @@
 #include <signal.h>
 #include <pthread.h>
 #include <urcu.h>
+#include <assert.h>
 
 #include "shared/lk/bitops.h"
 
-- 
2.48.1




More information about the ngnfs-devel mailing list