From c0178f27a252128f96316a6c260a15c28960f510 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Fri, 6 Jun 1997 00:38:17 +0000 Subject: [PATCH] From: "D'Arcy J.M. Cain" Subject: [HACKERS] src.original/./backend/lib/fstack.c Another change I suggested. I bracket an unused function and add a return to quiet the compiler. In addition I added an internal consistency check. --- src/backend/optimizer/geqo/geqo_eval.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/optimizer/geqo/geqo_eval.c b/src/backend/optimizer/geqo/geqo_eval.c index d1265f7434..4ff1b4748d 100644 --- a/src/backend/optimizer/geqo/geqo_eval.c +++ b/src/backend/optimizer/geqo/geqo_eval.c @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: geqo_eval.c,v 1.8 1997/04/09 08:31:29 scrappy Exp $ + * $Id: geqo_eval.c,v 1.9 1997/06/06 00:38:17 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -415,6 +415,7 @@ new_joininfo_list(List *joininfo_list, List *join_relids) return(current_joininfo_list); } +#ifdef NOTUSED /* * add-new-joininfos-- * For each new join relation, create new joininfos that @@ -636,6 +637,7 @@ nonoverlap_sets(List *s1, List *s2) } return(true); } +#endif /* NOTUSED */ /* * geqo_joinrel_size-- @@ -682,4 +684,6 @@ geqo_nth(int stop, List *rels) if (i == stop) return lfirst(r); i++; } + elog(WARN,"geqo_nth: Internal error - ran off end of list"); + return NULL; /* to keep compiler happy */ } -- 2.40.0