From 0798bce2a6350d06de40992c0f40e5a039a7ccc5 Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Sat, 28 Jan 2023 17:33:06 +0000 Subject: [PATCH] [-Wunused-value] - remove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit borrowed/jenny/jenny.c: In function ‘next_builder’: borrowed/jenny/jenny.c:1164:5: warning: statement with no effect [-Wunused-value] 1164 | for (i; icolor == nullptr; | ~~~~~~~~~~~~^~~~~~~~~~ libgnucash/engine/Account.cpp:1429:22: warning: statement has no effect [-Wunused-value] 1429 | priv->sort_order == nullptr; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ libgnucash/engine/Account.cpp:1430:17: warning: statement has no effect [-Wunused-value] 1430 | priv->notes == nullptr; | ~~~~~~~~~~~~^~~~~~~~~~ libgnucash/engine/Account.cpp:1431:18: warning: statement has no effect [-Wunused-value] 1431 | priv->filter == nullptr; | ~~~~~~~~~~~~~^~~~~~~~~~ libgnucash/engine/gnc-int128.cpp: In function ‘void decimal_from_binary(uint64_t*, uint64_t, uint64_t)’: libgnucash/engine/gnc-int128.cpp:898:36: warning: right operand of comma operator has no effect [-Wunused-value] 898 | d[3] = (hi >> 32) & bin_mask, 0; | ^ --- borrowed/jenny/jenny.c | 8 ++++---- libgnucash/backend/xml/io-gncxml-v2.cpp | 2 +- libgnucash/engine/Account.cpp | 8 ++++---- libgnucash/engine/gnc-int128.cpp | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/borrowed/jenny/jenny.c b/borrowed/jenny/jenny.c index 489f996715..2b2d3c63a3 100644 --- a/borrowed/jenny/jenny.c +++ b/borrowed/jenny/jenny.c @@ -1161,7 +1161,7 @@ next_builder( state *s, feature *tuple, ub1 n) return FALSE; else if (tuple[i].f < s->dim[tuple[i].d]-1) { ++tuple[i].f; /* increment feature */ - for (i; idim[offset[i].d]-1) { ++offset[i].f; /* increment feature */ - for (i; ilast_num = nullptr; priv->tax_us_code = nullptr; priv->tax_us_pns = nullptr; - priv->color == nullptr; - priv->sort_order == nullptr; - priv->notes == nullptr; - priv->filter == nullptr; + priv->color = nullptr; + priv->sort_order = nullptr; + priv->notes = nullptr; + priv->filter = nullptr; priv->parent = nullptr; priv->children = nullptr; diff --git a/libgnucash/engine/gnc-int128.cpp b/libgnucash/engine/gnc-int128.cpp index 340dbe1f30..a4242e6abe 100644 --- a/libgnucash/engine/gnc-int128.cpp +++ b/libgnucash/engine/gnc-int128.cpp @@ -895,7 +895,7 @@ decimal_from_binary (uint64_t d[dec_array_size], uint64_t hi, uint64_t lo) d[0] = lo & bin_mask; d[1] = (lo >> 32) & bin_mask; d[2] = hi & bin_mask; - d[3] = (hi >> 32) & bin_mask, 0; + d[3] = (hi >> 32) & bin_mask; d[0] += coeff_3[3] * d[3] + coeff_2[3] * d[2] + coeff_1[3] * d[1]; uint64_t q {d[0] / dec_div};