summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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