Re: [PATCH 4/4] exclude: reuse last basename comparison

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 4/4] exclude: reuse last basename comparison

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:00

Nguyễn Thái Ngọc Duy [off-list ref] writes:
quoted hunk
diff --git a/dir.c b/dir.c
index 94fe9f8..2964076 100644
--- a/dir.c
+++ b/dir.c
@@ -511,6 +511,7 @@ int excluded_from_list(const char *pathname,
 		       struct exclude_list *el)
 {
 	int i;
+	int last_basecmp = el->nr, basecmp_result;
Gcc complains that basecmp_result may be used without initialized in
this function.

Re: [PATCH 4/4] exclude: reuse last basename comparison

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:54:00

On Fri, Jun 8, 2012 at 1:40 AM, Junio C Hamano [off-list ref] wrote:
Nguyễn Thái Ngọc Duy [off-list ref] writes:
quoted
diff --git a/dir.c b/dir.c
index 94fe9f8..2964076 100644
--- a/dir.c
+++ b/dir.c
@@ -511,6 +511,7 @@ int excluded_from_list(const char *pathname,
                     struct exclude_list *el)
 {
      int i;
+     int last_basecmp = el->nr, basecmp_result;
Gcc complains that basecmp_result may be used without initialized in
this function.
I'm pretty sure it's fault positive.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help