mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
core: conditionally declare variable only used in conditional code
Avoids emitting a compiler diagnostic by default for non-NLS builds for -Wunused-variable.
This commit is contained in:
committed by
Sébastien Helleu
parent
cefc6820c1
commit
7e79dd92ba
+4
-1
@@ -1700,7 +1700,10 @@ doc_generate (const char *path)
|
||||
doc_gen_scripting_constants,
|
||||
NULL,
|
||||
};
|
||||
char lang[3], *localedir;
|
||||
char lang[3];
|
||||
#ifdef ENABLE_NLS
|
||||
char *localedir;
|
||||
#endif
|
||||
|
||||
rc_doc_gen = 0;
|
||||
num_files = 0;
|
||||
|
||||
Reference in New Issue
Block a user