瀏覽代碼

core: ut.h - add inline to static function to avoid warning from including files

- for shm_str_dup_block()
Daniel-Constantin Mierla 4 年之前
父節點
當前提交
34301ea168
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/ut.h

+ 1 - 1
src/core/ut.h

@@ -748,7 +748,7 @@ static inline int strz2sint(char* _s, int* _r)
 /**
  * duplicate str structure and content in a single shm block
  */
-static str* shm_str_dup_block(const str* src)
+static inline str* shm_str_dup_block(const str* src)
 {
 	str *dst;