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
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
, 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