diff options
| author | Mattias Andrée <m@maandree.se> | 2025-02-22 00:54:23 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-02-22 00:54:23 +0100 |
| commit | 1aa5c5fcc55f65bb48396a6fb45af060eb24b8e6 (patch) | |
| tree | 21d6c69c2f64226e98c28413a8e95534c36f939f /common.h | |
| parent | Fix doc style (diff) | |
| download | liblog-master.tar.gz liblog-master.tar.bz2 liblog-master.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |
