pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:60:   /*** Main string hash function ***/      #define StrHash(s,len) low_do_hash(s,len,0)   #define low_do_hash(STR,LEN,SHIFT) low_hashmem( (STR), (LEN)<<(SHIFT), hash_prefix_len<<(SHIFT), hashkey )   #define do_hash(STR) low_do_hash(STR->str,STR->len,STR->size_shift)      static INLINE int string_is_block_allocated(const struct pike_string * s) {    return (s->alloc_type == STRING_ALLOC_BA);   }    - static INLINE int string_is_malloced(const struct pike_string * s) { + static INLINE int PIKE_UNUSED_ATTRIBUTE string_is_malloced(const struct pike_string * s) {    return (s->alloc_type == STRING_ALLOC_MALLOC);   }      static INLINE int string_is_static(const struct pike_string * s) {    return s->alloc_type == STRING_ALLOC_STATIC;   }      static INLINE int string_is_substring(const struct pike_string * s) {    return s->alloc_type == STRING_ALLOC_SUBSTRING;   }