From 5d4aa454e3e965e6312248d1f6e62da4ce4197b7 Mon Sep 17 00:00:00 2001 From: Sweta Vooda Date: Mon, 22 Apr 2024 22:48:11 +0000 Subject: [PATCH] supress warn --- src/pinecone/pinecone_validate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {