Skip to content

Commit 229b9c1

Browse files
committed
supress warn
1 parent 5a1f375 commit 229b9c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: psql test -c 'alter database test set enable_seqscan = off'
5353

5454
# setup the database for testing
55-
- 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"
55+
- 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"
5656
- if: ${{ failure() }}
5757
run: cat regression.diffs
5858
# mac:

src/pinecone/pinecone_validate.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ bool validate_vector_nonzero(Vector* vector) {
2222
return true;
2323
}
2424

25-
25+
#pragma GCC diagnostic push
26+
#pragma GCC diagnostic ignored "-Wnonnull"
2627
void pinecone_spec_validator(const PineconeOptions *opts)
2728
{
2829
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)
3435
Refer to https://docs.pinecone.io/reference/create_index")));
3536
}
3637
}
38+
#pragma GCC diagnostic pop
3739

3840
void pinecone_host_validator(const char *host)
3941
{

0 commit comments

Comments
 (0)