From: Bruno Haible <bruno@clisp.org>
Date: Sat, 22 Apr 2017 12:24:36 +0000 (+0200)
Subject: quotearg tests: Avoid warnings.
X-Git-Tag: v1.0~6260
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bc800241b30ede1f7eb5ed2233fc360e71c3536e;p=gnulib.git

quotearg tests: Avoid warnings.

* tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
false.
---

diff --git a/ChangeLog b/ChangeLog
index 45a7d874e4..3ffc954a8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-04-22  Bruno Haible  <bruno@clisp.org>
+
+	quotearg tests: Avoid warnings.
+	* tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
+	false.
+
 2017-04-22  Bruno Haible  <bruno@clisp.org>
 
 	poll: Enable argument check.
diff --git a/tests/test-quotearg.c b/tests/test-quotearg.c
index e63e8b08da..9308f03708 100644
--- a/tests/test-quotearg.c
+++ b/tests/test-quotearg.c
@@ -29,10 +29,10 @@
 #include "gettext.h"
 #include "macros.h"
 
-#include "test-quotearg.h"
-
 #if ENABLE_NLS
 
+# include "test-quotearg.h"
+
 static struct result_groups locale_results[] = {
   /* locale_quoting_style */
   { { LQ RQ, LQ "\\0001\\0" RQ, 11, LQ "simple" RQ,