File tree 4 files changed +8
-3
lines changed
Filter options
4 files changed +8
-3
lines changed
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ include $(top_builddir)/src/Makefile.global
26
26
include $(top_srcdir ) /contrib/contrib-global.mk
27
27
endif
28
28
29
+ ifdef USE_ASSERT_CHECKING
30
+ override CFLAGS += -DUSE_ASSERT_CHECKING
31
+ endif
32
+
29
33
jsquery_gram.o : jsquery_scan.c
30
34
31
35
jsquery_gram.c : BISONFLAGS += -d
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ make_value_path_entry_handler(ExtractedNode *node, Pointer extra)
462
462
{
463
463
Entries * e = (Entries * )extra ;
464
464
uint32 hash ;
465
- bool lossy , partialMatch ;
465
+ bool lossy , partialMatch = false ;
466
466
GINKey * key ;
467
467
KeyExtra * keyExtra ;
468
468
int result ;
@@ -1175,6 +1175,7 @@ gin_debug_query_path_value(PG_FUNCTION_ARGS)
1175
1175
Entries e = {0 };
1176
1176
char * s ;
1177
1177
1178
+
1178
1179
jq = PG_GETARG_JSQUERY (0 );
1179
1180
s = debugJsQuery (jq , make_path_value_entry_handler ,
1180
1181
check_path_value_entry_handler , (Pointer )& e );
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ checkScalarIn(JsQueryItem *jsq, JsonbValue *jb)
221
221
static bool
222
222
executeArrayOp (JsQueryItem * jsq , int32 op , JsonbValue * jb )
223
223
{
224
- int32 r ;
224
+ int32 r = 0 ; /* keep static analyzer quiet */
225
225
JsonbIterator * it ;
226
226
JsonbValue v ;
227
227
JsQueryItem elem ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if [ $CHECK_CODE = "true" ]; then
36
36
if [ " $CC " = " clang" ]; then
37
37
sudo apt-get -y install -qq clang-$LLVM_VER
38
38
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=1 USE_ASSERT_CHECKING=1 PG_CONFIG=$config_path || status=$?
40
40
exit $status
41
41
42
42
elif [ " $CC " = " gcc" ]; then
You can’t perform that action at this time.
0 commit comments