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: Bruno Haible
Subject: Re: [PATCH] strerror: avoid warnings about discarding "const"
Date: Fri, 16 Jan 2009 12:31:30 +0100
User-agent: KMail/1.9.9

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.

Bruno




reply via email to

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