Sfoglia il codice sorgente

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

- for shm_str_dup_block()
Daniel-Constantin Mierla 4 anni fa
parent
commit
34301ea168
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;