diff options
Diffstat (limited to 'src/DatabaseLock.hxx')
-rw-r--r-- | src/DatabaseLock.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DatabaseLock.hxx b/src/DatabaseLock.hxx index 371a7d7b2..739f56658 100644 --- a/src/DatabaseLock.hxx +++ b/src/DatabaseLock.hxx @@ -28,6 +28,7 @@ #include "check.h" #include "thread/Mutex.hxx" +#include "gcc.h" #include <glib.h> #include <assert.h> @@ -41,7 +42,7 @@ extern GThread *db_mutex_holder; /** * Does the current thread hold the database lock? */ -G_GNUC_PURE +gcc_pure static inline bool holding_db_lock(void) { |