diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a0395ac..b340d6e3 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: - run: psql test -c 'alter database test set enable_seqscan = off' # setup the database for testing - - run: make installcheck REGRESS="pinecone_crud pinecone_medium_create pinecone_zero_vector_insert pinecone_build_after_insert pinecone_invalid_config" REGRESS_OPTS="--dbname=test --inputdir=./test --use-existing" + - run: make installcheck REGRESS="pinecone_crud pinecone_medium_create pinecone_zero_vector_insert pinecone_build_after_insert" REGRESS_OPTS="--dbname=test --inputdir=./test --use-existing" - if: ${{ failure() }} run: cat regression.diffs # mac: diff --git a/src/pinecone/pinecone_validate.c b/src/pinecone/pinecone_validate.c index 2c5def93..69d69526 100644 --- a/src/pinecone/pinecone_validate.c +++ b/src/pinecone/pinecone_validate.c @@ -22,7 +22,8 @@ bool validate_vector_nonzero(Vector* vector) { return true; } - +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wnonnull" void pinecone_spec_validator(const PineconeOptions *opts) { if (opts == NULL || cJSON_Parse(GET_STRING_RELOPTION(opts, spec)) == NULL || strcmp(GET_STRING_RELOPTION(opts, spec), "") == 0) @@ -34,6 +35,7 @@ void pinecone_spec_validator(const PineconeOptions *opts) Refer to https://docs.pinecone.io/reference/create_index"))); } } +#pragma GCC diagnostic pop void pinecone_host_validator(const char *host) {