Get rid of clang warnings for UC_INLINE
This commit is contained in:
@@ -4,11 +4,17 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "tailq.h"
|
#include "tailq.h"
|
||||||
|
|
||||||
|
#ifndef UC_INLINE
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
# ifdef __clang__
|
||||||
# define UC_INLINE inline __attribute__((always_inline))
|
# define UC_INLINE inline __attribute__((always_inline))
|
||||||
# else
|
# else
|
||||||
|
# define UC_INLINE inline __attribute__((always_inline,flatten))
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
# define UC_INLINE inline
|
# define UC_INLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
enum UC_MBUF_FLAGS {
|
enum UC_MBUF_FLAGS {
|
||||||
UC_MBUF_FL_MALLOC = 0x0001, //MBuf and MBuf->bufstart are seperatly malloc'd
|
UC_MBUF_FL_MALLOC = 0x0001, //MBuf and MBuf->bufstart are seperatly malloc'd
|
||||||
|
|||||||
@@ -2,11 +2,18 @@
|
|||||||
#define UC_PACK_H_
|
#define UC_PACK_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifndef UC_INLINE
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
# ifdef __clang__
|
||||||
# define UC_INLINE inline __attribute__((always_inline))
|
# define UC_INLINE inline __attribute__((always_inline))
|
||||||
# else
|
# else
|
||||||
|
# define UC_INLINE inline __attribute__((always_inline,flatten))
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
# define UC_INLINE inline
|
# define UC_INLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Functions for serializing/de-serializing integers to and from
|
/** Functions for serializing/de-serializing integers to and from
|
||||||
* byte arrays.
|
* byte arrays.
|
||||||
|
|||||||
@@ -1,11 +1,17 @@
|
|||||||
#ifndef UC_TAILQ_H_
|
#ifndef UC_TAILQ_H_
|
||||||
#define UC_TAILQ_H_
|
#define UC_TAILQ_H_
|
||||||
|
|
||||||
|
#ifndef UC_INLINE
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
# ifdef __clang__
|
||||||
|
# define UC_INLINE inline __attribute__((always_inline))
|
||||||
|
# else
|
||||||
# define UC_INLINE inline __attribute__((always_inline,flatten))
|
# define UC_INLINE inline __attribute__((always_inline,flatten))
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define UC_INLINE inline
|
# define UC_INLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Doubly Linked List.
|
* Doubly Linked List.
|
||||||
* It is used either as
|
* It is used either as
|
||||||
|
|||||||
Reference in New Issue
Block a user