mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Fix warnings: terminal.c: get_config_int(): Dead init: RI.
Problem : Dead initialization @ 1119. Diagnostic : Real issue. Rationale : `obj` is immediately assigned another value through GET_CONFIG_VALUE macro. Resolution : Don't initialize. Helped-by: oni-link <knil.ino@gmail.com>
This commit is contained in:
parent
1b4dbdf45b
commit
af8adc2d8c
@ -1117,11 +1117,12 @@ static char *get_config_string(Terminal *term, char *key)
|
||||
|
||||
static int get_config_int(Terminal *term, char *key)
|
||||
{
|
||||
Object obj = OBJECT_INIT;
|
||||
Object obj;
|
||||
GET_CONFIG_VALUE(term, key, obj);
|
||||
if (obj.type == kObjectTypeInteger) {
|
||||
return (int)obj.data.integer;
|
||||
}
|
||||
api_free_object(obj);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user