mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-01 01:10:09 +01:00
test: silence a coverity warning
Value set but overwritten before use. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2e4895b888
commit
1cf7c88ae6
1 changed files with 2 additions and 4 deletions
|
|
@ -173,8 +173,6 @@ litest_backtrace(void)
|
|||
char procname[256];
|
||||
Dl_info dlinfo;
|
||||
/* filename and i are unused ifdef LITEST_SHUTUP */
|
||||
const char *filename __attribute__((unused));
|
||||
int i __attribute__((unused)) = 0;
|
||||
|
||||
pip.unwind_info = NULL;
|
||||
ret = unw_getcontext(&context);
|
||||
|
|
@ -199,6 +197,8 @@ litest_backtrace(void)
|
|||
char file[PATH_MAX];
|
||||
int line;
|
||||
bool have_lineno = false;
|
||||
const char *filename = "?";
|
||||
int i = 0;
|
||||
|
||||
ret = unw_get_proc_info(&cursor, &pip);
|
||||
if (ret) {
|
||||
|
|
@ -226,8 +226,6 @@ litest_backtrace(void)
|
|||
(pip.start_ip + off),
|
||||
file,
|
||||
&line);
|
||||
} else {
|
||||
filename = "?";
|
||||
}
|
||||
|
||||
if (have_lineno) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue