Re: [PATCH] fast-import: Remove redundant assignment of 'oe' to itself.

2013-05-28 Thread Joachim Schmitz
Stefano Lattarini wrote: On 05/26/2013 10:05 PM, Stefan Beller wrote: Reported by cppcheck. Signed-off-by: Stefan Beller --- fast-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast-import.c b/fast-import.c index 5f539d7..0142e3a 100644 --- a/fast-import.c +++ b/

Re: [PATCH] fast-import: Remove redundant assignment of 'oe' to itself.

2013-05-26 Thread Stefan Beller
The line in question was not fixed up, but originally added in 85c6239. However I see your point, it may reintroduce warnings. Regards, Stefan On 05/26/2013 10:17 PM, Stefano Lattarini wrote: > On 05/26/2013 10:14 PM, Stefan Beller wrote: >> It's not done very often. >> > Of course; it's done onl

Re: [PATCH] fast-import: Remove redundant assignment of 'oe' to itself.

2013-05-26 Thread Stefano Lattarini
On 05/26/2013 10:14 PM, Stefan Beller wrote: > It's not done very often. > Of course; it's done only in those places where GCC gave spurious warnings. And it's done for no other reason that to silence said warnings. > [SNIP] rest of message Regards, Stefano -- To unsubscribe from this list: se

Re: [PATCH] fast-import: Remove redundant assignment of 'oe' to itself.

2013-05-26 Thread Stefan Beller
It's not done very often. For example at the very same place of the patch there is const char *p; not assigned. Well you could argue, that it can be detected by gcc as that variable p is assigned next line. So another counterexample, having the same pattern would be fast-import.c line 2992 in pars

Re: [PATCH] fast-import: Remove redundant assignment of 'oe' to itself.

2013-05-26 Thread Stefano Lattarini
On 05/26/2013 10:05 PM, Stefan Beller wrote: > Reported by cppcheck. > > Signed-off-by: Stefan Beller > --- > fast-import.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fast-import.c b/fast-import.c > index 5f539d7..0142e3a 100644 > --- a/fast-import.c > +++ b/fast-i

[PATCH] fast-import: Remove redundant assignment of 'oe' to itself.

2013-05-26 Thread Stefan Beller
Reported by cppcheck. Signed-off-by: Stefan Beller --- fast-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast-import.c b/fast-import.c index 5f539d7..0142e3a 100644 --- a/fast-import.c +++ b/fast-import.c @@ -2914,7 +2914,7 @@ static void cat_blob(struct object_en