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:
Louisvh 2016-02-05 04:05:13 +01:00
parent 80a0ae9f18
commit ec615d562f

View file

@ -114,12 +114,10 @@ init_zathura(const char* config_dir, const char* data_dir,
return NULL;
}
#ifdef WITH_SYNCTEX
if (synctex_editor != NULL) {
girara_setting_set(zathura->ui.session, "synctex-editor-command",
synctex_editor);
}
#endif
return zathura;
}