mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 14:23:12 +00:00
Remove unused variable and branch (reported by clang-analzyer)
This commit is contained in:
committed by
Jason Evans
parent
dd03a2e377
commit
35579afb55
@@ -377,7 +377,6 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||||||
case '\0': goto label_out;
|
case '\0': goto label_out;
|
||||||
case '%': {
|
case '%': {
|
||||||
bool alt_form = false;
|
bool alt_form = false;
|
||||||
bool zero_pad = false;
|
|
||||||
bool left_justify = false;
|
bool left_justify = false;
|
||||||
bool plus_space = false;
|
bool plus_space = false;
|
||||||
bool plus_plus = false;
|
bool plus_plus = false;
|
||||||
@@ -398,10 +397,6 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||||||
assert(alt_form == false);
|
assert(alt_form == false);
|
||||||
alt_form = true;
|
alt_form = true;
|
||||||
break;
|
break;
|
||||||
case '0':
|
|
||||||
assert(zero_pad == false);
|
|
||||||
zero_pad = true;
|
|
||||||
break;
|
|
||||||
case '-':
|
case '-':
|
||||||
assert(left_justify == false);
|
assert(left_justify == false);
|
||||||
left_justify = true;
|
left_justify = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user