From ec615d562f3a0ec14387717091c4ec4df7f06c4c Mon Sep 17 00:00:00 2001 From: Louisvh Date: Fri, 5 Feb 2016 04:05:13 +0100 Subject: [PATCH] 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. --- zathura/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/zathura/main.c b/zathura/main.c index b81c630..2671e4c 100644 --- a/zathura/main.c +++ b/zathura/main.c @@ -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; }