diff options
author | Gavin Howard <gavin@yzena.com> | 2021-07-22 23:48:14 -0600 |
---|---|---|
committer | Gavin Howard <gavin@yzena.com> | 2021-07-22 23:48:14 -0600 |
commit | 9fec0f46d77ac2cdf1e8fcba8d9baeaac066753c (patch) | |
tree | d67516346ae0cfa976461bd2a288992e019878b2 /src | |
parent | c2988f1694b9e9daedbbff98ba5279d511a8ef4c (diff) | |
download | platform_external_bc-9fec0f46d77ac2cdf1e8fcba8d9baeaac066753c.tar.gz platform_external_bc-9fec0f46d77ac2cdf1e8fcba8d9baeaac066753c.tar.bz2 platform_external_bc-9fec0f46d77ac2cdf1e8fcba8d9baeaac066753c.zip |
Fix a compile error with all warning and -Werror
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vector.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vector.c b/src/vector.c index f46665cd..a21149d2 100644 --- a/src/vector.c +++ b/src/vector.c @@ -534,6 +534,8 @@ char* bc_slabvec_strdup(BcVec *v, const char *str) { return s; } +#if BC_ENABLED + void bc_slabvec_undo(BcVec *v, size_t len) { BcSlab *s; @@ -573,6 +575,8 @@ void bc_slabvec_undo(BcVec *v, size_t len) { assert(s->len == 0 || !s->s[s->len - 1]); } +#endif // BC_ENABLED + void bc_slabvec_clear(BcVec *v) { BcSlab *s; |