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 5d4aa45
Showing 1 changed file with 3 additions and 1 deletion.
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 5d4aa45

Please sign in to comment.