mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-02 16:40:29 +03:00
Remove dead stores detected by static analysis
None of these are harmful, and they are almost certainly optimized away by the compiler. The motivation for fixing them anyway is that we'd like to enable static analysis as part of CI, and the first step towards that is resolving the warnings it produces at present.
This commit is contained in:
parent
0288126d9c
commit
3e2ba7a651
6 changed files with 7 additions and 13 deletions
|
|
@ -2745,7 +2745,6 @@ arena_i_dss_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
|
|||
int ret;
|
||||
const char *dss = NULL;
|
||||
unsigned arena_ind;
|
||||
dss_prec_t dss_prec_old = dss_prec_limit;
|
||||
dss_prec_t dss_prec = dss_prec_limit;
|
||||
|
||||
malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
|
||||
|
|
@ -2773,6 +2772,7 @@ arena_i_dss_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
|
|||
* Access via index narenas is deprecated, and scheduled for removal in
|
||||
* 6.0.0.
|
||||
*/
|
||||
dss_prec_t dss_prec_old;
|
||||
if (arena_ind == MALLCTL_ARENAS_ALL || arena_ind ==
|
||||
ctl_arenas->narenas) {
|
||||
if (dss_prec != dss_prec_limit &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue