Re: [PATCH 14/14] wt-status.c: Initialise variable to suppress msvc warning
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 4, 2010, 20:52 UTC
- Message-ID
- <20101204205206.GB3170@burratino>
- In-Reply-To
- <4CFA92A2.4030801@ramsay1.demon.co.uk>
Ramsay Jones wrote:
Show 8 quoted lines
> --- a/wt-status.c
> +++ b/wt-status.c
> @@ -149,7 +149,7 @@ static void wt_status_print_change_data(struct wt_status *s,
> {
> struct wt_status_change_data *d = it->util;
> const char *c = color(change_type, s);
> - int status = status;
> + int status = 0;Just for the record (I assume you are already aware of this):
http://thread.gmane.org/gmane.comp.version-control.git/133278/focus=133422 http://thread.gmane.org/gmane.comp.version-control.git/124676/focus=124803
I personally feel lukewarm about this kind of change. Is it possible to suppress this warning from msvc?