Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd16f94

Browse files
committed
Remove unreachable code
The Solaris Studio compiler warns about these instances, unlike moremainstream compilers such as gcc. But manual inspection showed thatthe code is clearly not reachable, and we hope no worthy compiler willcomplain about removing this code.
1 parenta76c857 commitdd16f94

File tree

20 files changed

+2
-43
lines changed

20 files changed

+2
-43
lines changed

‎contrib/hstore/hstore_io.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ get_val(HSParser *state, bool ignoreeq, bool *escaped)
163163

164164
state->ptr++;
165165
}
166-
167-
return false;
168166
}
169167

170168
#defineWKEY0

‎contrib/intarray/_int_bool.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ gettoken(WORKSTATE *state, int32 *val)
136136
}
137137
(state->buf)++;
138138
}
139-
returnEND;
140139
}
141140

142141
/*
@@ -301,7 +300,6 @@ execute(ITEM *curitem, void *checkval, bool calcnot,
301300
else
302301
returnexecute(curitem-1,checkval,calcnot,chkcond);
303302
}
304-
return false;
305303
}
306304

307305
/*
@@ -404,7 +402,6 @@ contains_required_value(ITEM *curitem)
404402
else
405403
return false;
406404
}
407-
return false;
408405
}
409406

410407
bool

‎contrib/intarray/_int_gist.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ g_int_compress(PG_FUNCTION_ARGS)
217217
}
218218
else
219219
PG_RETURN_POINTER(entry);
220-
221-
PG_RETURN_POINTER(entry);
222220
}
223221

224222
Datum

‎contrib/ltree/ltxtquery_io.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ gettoken_query(QPRS_STATE *state, int32 *val, int32 *lenval, char **strval, uint
139139

140140
state->buf+=charlen;
141141
}
142-
returnEND;
143142
}
144143

145144
/*

‎contrib/ltree/ltxtquery_op.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ ltree_execute(ITEM *curitem, void *checkval, bool calcnot, bool (*chkcond) (void
4040
else
4141
returnltree_execute(curitem+1,checkval,calcnot,chkcond);
4242
}
43-
return false;
4443
}
4544

4645
typedefstruct

‎src/backend/access/gin/ginbtree.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ ginFindLeafPage(GinBtree btree, GinBtreeStack *stack)
146146
stack->predictNumber=1;
147147
}
148148
}
149-
150-
/* keep compiler happy */
151-
returnNULL;
152149
}
153150

154151
void

‎src/backend/access/gin/ginget.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,6 @@ collectMatchBitmap(GinBtreeData *btree, GinBtreeStack *stack,
354354
*/
355355
stack->off++;
356356
}
357-
358-
return true;
359357
}
360358

361359
/*

‎src/backend/access/gist/gistget.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,6 @@ gistgettuple(PG_FUNCTION_ARGS)
535535
}while (so->nPageData==0);
536536
}
537537
}
538-
539-
PG_RETURN_BOOL(false);/* keep compiler quiet */
540538
}
541539

542540
/*

‎src/backend/executor/nodeGroup.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ ExecGroup(GroupState *node)
184184
else
185185
InstrCountFiltered1(node,1);
186186
}
187-
188-
/* NOTREACHED */
189-
returnNULL;
190187
}
191188

192189
/* -----------------

‎src/backend/libpq/be-secure.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ secure_loaded_verify_locations(void)
201201
{
202202
#ifdefUSE_SSL
203203
returnssl_loaded_verify_locations;
204-
#endif
205-
204+
#else
206205
return false;
206+
#endif
207207
}
208208

209209
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp