From d69585b82abfdaede9e8c358982a4953c432e8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 17 Sep 2020 22:27:33 +0200 Subject: Resolve DEBUG compilation issues Use NDEBUG conditional instead of DEBUG. Do not call static functions in extern inline ones. Vector.c:67:11: error: static function 'Vector_isConsistent' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline] --- Hashtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Hashtable.h') diff --git a/Hashtable.h b/Hashtable.h index 144f01cf..aacbb340 100644 --- a/Hashtable.h +++ b/Hashtable.h @@ -26,11 +26,11 @@ struct Hashtable_ { bool owner; }; -#ifdef DEBUG +#ifndef NDEBUG int Hashtable_count(Hashtable* this); -#endif +#endif /* NDEBUG */ Hashtable* Hashtable_new(int size, bool owner); -- cgit v1.2.3