diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-08 21:31:04 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-09 19:24:18 +0200 |
commit | e5d49ebf13899a09db031403df6bdce2d845853c (patch) | |
tree | 55abf142a1436b7b7ff55482225e9f1cb64d5ea1 /src | |
parent | dd36439cc88315c53ba8beeca751ac4e7cd40e11 (diff) | |
download | sciteco-e5d49ebf13899a09db031403df6bdce2d845853c.tar.gz |
define G_DISABLE_ASSERT unless --enable-debug is specified
* turns out that glib's g_assert() does not depend on NDEBUG like Standard C's assert()
* this disables assertions in release builds and should speed up things slightly
Diffstat (limited to 'src')
-rw-r--r-- | src/expressions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c index c7151f8..ef785e0 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -86,7 +86,7 @@ teco_int_t teco_expressions_pop_num(guint index) { teco_int_t n = 0; - teco_operator_t op = teco_expressions_pop_op(0); + G_GNUC_UNUSED teco_operator_t op = teco_expressions_pop_op(0); g_assert(op == TECO_OP_NUMBER); |