소스 검색

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;