Re: [PATCH] test-readtokens.c: avoid const-related compilation warnings

2012-03-08 Thread Jim Meyering
Bruno Haible wrote: > Jim Meyering wrote: >> @@ -77,7 +77,7 @@ main (int argc, char **argv) >> >>if (STREQ (delim, "\\0")) >> { >> - delim = ""; >> + delim = (char *) ""; >>delim_len = 1; >> } >> > > Instead of introducing this cast, how about making 'delim' a 'const

Re: [PATCH] test-readtokens.c: avoid const-related compilation warnings

2012-03-08 Thread Bruno Haible
Jim Meyering wrote: > @@ -77,7 +77,7 @@ main (int argc, char **argv) > >if (STREQ (delim, "\\0")) > { > - delim = ""; > + delim = (char *) ""; >delim_len = 1; > } > Instead of introducing this cast, how about making 'delim' a 'const char *'? I see no code that wri

[PATCH] test-readtokens.c: avoid const-related compilation warnings

2012-03-07 Thread Jim Meyering
, 8 Mar 2012 08:25:08 +0100 Subject: [PATCH] test-readtokens.c: avoid const-related compilation warnings * tests/test-readtokens.c: Avoid const-related compilation warnings. --- ChangeLog |5 + tests/test-readtokens.c |4 ++-- 2 files changed, 7 insertions(+), 2 delet