From bc800241b30ede1f7eb5ed2233fc360e71c3536e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 22 Apr 2017 14:24:36 +0200 Subject: [PATCH] quotearg tests: Avoid warnings. * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is false. --- ChangeLog | 6 ++++++ tests/test-quotearg.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 45a7d874e4..3ffc954a8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-04-22 Bruno Haible + + quotearg tests: Avoid warnings. + * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is + false. + 2017-04-22 Bruno Haible 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, -- 2.39.5