summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-22 00:54:23 +0100
committerMattias Andrée <m@maandree.se>2025-02-22 00:54:23 +0100
commit1aa5c5fcc55f65bb48396a6fb45af060eb24b8e6 (patch)
tree21d6c69c2f64226e98c28413a8e95534c36f939f /common.h
parentFix doc style (diff)
downloadliblog-master.tar.gz
liblog-master.tar.bz2
liblog-master.tar.xz
m fix + add testsHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/common.h b/common.h
index 277c3d5..fc403dc 100644
--- a/common.h
+++ b/common.h
@@ -15,6 +15,10 @@
#if defined(__GNUC__)
+# pragma GCC diagnostic ignored "-Winline"
+#endif
+
+#if defined(__GNUC__)
# define WEAK_LINKING __attribute__((__weak__))
#else
# define WEAK_LINKING
@@ -24,7 +28,8 @@
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
-#define NEXT_LOGLEVEL(LVL) ((enum liblog_level)(LVL) + (enum liblog_level)100)
+#define LOGLEVEL_DELTA 100
+#define NEXT_LOGLEVEL(LVL) ((enum liblog_level)(LVL) + (enum liblog_level)LOGLEVEL_DELTA)
#define XLOG_NOT_INLINE 0x0100
@@ -314,3 +319,10 @@ void test_assert(const char *file, int line, enum assert_type type, enum assert_
ASSERT_EQ_INT(HAVE, 0)
#endif
+
+
+#if !defined(TEST) && !defined(USE_EXTERN_INLINE)
+# if defined(__GNUC__)
+# pragma GCC diagnostic ignored "-Wmissing-prototypes"
+# endif
+#endif