mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 07:35:59 +01:00
Removed unnecessary ifdef, fixed compiler warning
If WITH_SYNCTEX is not defined, synctex_editor will always be NULL, so the ifdef is not needed. This gets rid of the "unused variable" warning when compiling without synctex.
This commit is contained in:
parent
80a0ae9f18
commit
ec615d562f
1 changed files with 0 additions and 2 deletions
|
@ -114,12 +114,10 @@ init_zathura(const char* config_dir, const char* data_dir,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITH_SYNCTEX
|
|
||||||
if (synctex_editor != NULL) {
|
if (synctex_editor != NULL) {
|
||||||
girara_setting_set(zathura->ui.session, "synctex-editor-command",
|
girara_setting_set(zathura->ui.session, "synctex-editor-command",
|
||||||
synctex_editor);
|
synctex_editor);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return zathura;
|
return zathura;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue