bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] strerror: avoid warnings about discarding "const"


From: Jim Meyering
Subject: Re: [PATCH] strerror: avoid warnings about discarding "const"
Date: Fri, 16 Jan 2009 12:50:49 +0100

Bruno Haible <address@hidden> wrote:

> Jim Meyering wrote:
>>      case EINPROGRESS:
>> -      return "Operation now in progress";
>> +      m = "Operation now in progress";
>>      case EALREADY:
>> -      return "Operation already in progress";
>> +      m = "Operation already in progress";
>
> You have to insert a 'break;' statement after every assignment. Otherwise it's
> a big fallthrough.

Indeed ;-)
Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]