]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a gcc warning.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 03:02:38 +0000 (05:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 03:02:38 +0000 (05:02 +0200)
* gettext-tools/src/urlget.c (java_exitcode, execute_it): Don't define if
USEJAVA is 0.

gettext-tools/src/urlget.c

index 75d7c407c05434e0358327700c85b670bc82b854..4dfcd904a7664f6424afac7eec80408d48e5a7d6 100644 (file)
@@ -237,6 +237,8 @@ cat_file (const char *src_filename)
     error (EXIT_FAILURE, errno, _("error after reading \"%s\""), src_filename);
 }
 
+#if USEJAVA
+
 /* Exit code of the Java program.  */
 static int java_exitcode;
 
@@ -254,6 +256,8 @@ execute_it (const char *progname,
   return !(java_exitcode == 0 || java_exitcode == 2);
 }
 
+#endif
+
 /* Fetch the URL.  Upon error, use the FILE as fallback.  */
 static void
 fetch (const char *url, const char *file)