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

Commit10650ec

Browse files
author
Alexander Korotkov
committed
Some improvements to static analyzer checking.
1 parent7f90adf commit10650ec

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

‎Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ include $(top_builddir)/src/Makefile.global
2626
include$(top_srcdir)/contrib/contrib-global.mk
2727
endif
2828

29+
ifdefUSE_ASSERT_CHECKING
30+
overrideCFLAGS += -DUSE_ASSERT_CHECKING
31+
endif
32+
2933
jsquery_gram.o: jsquery_scan.c
3034

3135
jsquery_gram.c: BISONFLAGS += -d

‎jsonb_gin_ops.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ make_value_path_entry_handler(ExtractedNode *node, Pointer extra)
462462
{
463463
Entries*e= (Entries*)extra;
464464
uint32hash;
465-
boollossy,partialMatch;
465+
boollossy,partialMatch= false;
466466
GINKey*key;
467467
KeyExtra*keyExtra;
468468
intresult;
@@ -1175,6 +1175,7 @@ gin_debug_query_path_value(PG_FUNCTION_ARGS)
11751175
Entriese= {0};
11761176
char*s;
11771177

1178+
11781179
jq=PG_GETARG_JSQUERY(0);
11791180
s=debugJsQuery(jq,make_path_value_entry_handler,
11801181
check_path_value_entry_handler, (Pointer)&e);

‎jsquery_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ checkScalarIn(JsQueryItem *jsq, JsonbValue *jb)
221221
staticbool
222222
executeArrayOp(JsQueryItem*jsq,int32op,JsonbValue*jb)
223223
{
224-
int32r;
224+
int32r=0;/* keep static analyzer quiet */
225225
JsonbIterator*it;
226226
JsonbValuev;
227227
JsQueryItemelem;

‎travis/pg-travis-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ $CHECK_CODE = "true" ]; then
3636
if ["$CC"="clang" ];then
3737
sudo apt-get -y install -qq clang-$LLVM_VER
3838

39-
scan-build-$LLVM_VER --status-bugs make USE_PGXS=1 PG_CONFIG=$config_path|| status=$?
39+
scan-build-$LLVM_VER --status-bugs make USE_PGXS=1USE_ASSERT_CHECKING=1PG_CONFIG=$config_path|| status=$?
4040
exit$status
4141

4242
elif ["$CC"="gcc" ];then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp