Skip to content

Commit

Permalink
supress warn
Browse files Browse the repository at this point in the history
  • Loading branch information
swetavooda committed Apr 22, 2024
1 parent 5a1f375 commit 229b9c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion src/pinecone/pinecone_validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
{
Expand Down

0 comments on commit 229b9c1

Please sign in to comment.