diff options
| author | Tyge Løvset <[email protected]> | 2023-02-05 11:20:08 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-05 11:20:08 +0100 |
| commit | ff5a1bf4a623cf528e8b601959da993917e79c04 (patch) | |
| tree | 9b071b64d0abe7f0c752c14f6582f6584c62a3a0 /include/stc/clist.h | |
| parent | adc47cefc2976768c3f0b773bd26bfd1062e8a53 (diff) | |
| download | STC-modified-ff5a1bf4a623cf528e8b601959da993917e79c04.tar.gz STC-modified-ff5a1bf4a623cf528e8b601959da993917e79c04.zip | |
- Updated cspan.h to allow for compiling some functions as shared symbols.
- Fixed issue #45 warning -Wunused-parameter in clist.h
- Fixed some issues with the singleheader.py generator.
Diffstat (limited to 'include/stc/clist.h')
| -rw-r--r-- | include/stc/clist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h index 283c8774..cd6ec61e 100644 --- a/include/stc/clist.h +++ b/include/stc/clist.h @@ -138,7 +138,7 @@ STC_INLINE void _cx_memb(_put_n)(_cx_self* self, const _cx_raw* raw, int { while (n--) _cx_memb(_push_back)(self, i_keyfrom(*raw++)); } STC_INLINE _cx_self _cx_memb(_from_n)(const _cx_raw* raw, intptr_t n) { _cx_self cx = {0}; _cx_memb(_put_n)(&cx, raw, n); return cx; } -STC_INLINE bool _cx_memb(_reserve)(_cx_self* self, intptr_t n) { return true; } +STC_INLINE bool _cx_memb(_reserve)(_cx_self* self, intptr_t n) { (void)(self + n); return true; } STC_INLINE bool _cx_memb(_empty)(const _cx_self* self) { return self->last == NULL; } STC_INLINE void _cx_memb(_clear)(_cx_self* self) { _cx_memb(_drop)(self); } STC_INLINE _cx_value* _cx_memb(_push)(_cx_self* self, i_key value) |
