summaryrefslogtreecommitdiff
path: root/tests/test-quotearg-simple.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-11-03 16:48:56 -0600
committerEric Blake <eblake@redhat.com>2010-11-03 16:52:51 -0600
commit37b74cd909f60076a096ab8ac2635bc77755153f (patch)
tree8c8150252f38a19e22a33cb86c8f026966287027 /tests/test-quotearg-simple.c
parent19e1b753376b35a593cd8a8ddb91aa08e314e785 (diff)
downloadgnulib-37b74cd909f60076a096ab8ac2635bc77755153f.tar.gz
tests: fix compiler warnings
Detected by icc. The first three files are real test bugs, the last merely silences a warning about mixing an int with an enum type. * tests/test-getopt.h (test_getopt): Fix condition. * tests/test-getopt_long.h (test_getopt_long): Likewise. * tests/test-pipe2.c (main): Likewise. * tests/test-quotearg-simple.c (main): Avoid icc warning. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/test-quotearg-simple.c')
-rw-r--r--tests/test-quotearg-simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-quotearg-simple.c b/tests/test-quotearg-simple.c
index 095b199ae5..bd637eec7b 100644
--- a/tests/test-quotearg-simple.c
+++ b/tests/test-quotearg-simple.c
@@ -244,7 +244,7 @@ main (int argc _GL_UNUSED, char *argv[])
ASSERT (!isprint ('\033'));
for (i = literal_quoting_style; i <= clocale_quoting_style; i++)
{
- set_quoting_style (NULL, i);
+ set_quoting_style (NULL, (enum quoting_style) i);
compare_strings (use_quotearg_buffer, &results_g[i].group1, ascii_only);
compare_strings (use_quotearg, &results_g[i].group2, ascii_only);
if (i == c_quoting_style)