Skip to content

Commit 3cdf068

Browse files
committed
fix; ignore known deprecation messages
1 parent b9f9011 commit 3cdf068

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

note.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ J *NoteRequestResponse(J *req);
376376
@deprecated This function is deprecated. Please use `NoteConnect()` followed by
377377
the standard `NoteRequestResponse()` function instead.
378378
*/
379+
#pragma GCC diagnostic push
380+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
379381
NOTE_C_DEPRECATED J *NoteRequestResponseWithRetry(J *req, uint32_t timeoutSeconds);
382+
#pragma GCC diagnostic pop
380383
/*!
381384
@brief Send a request to the Notecard and return the response as JSON string.
382385
@@ -402,8 +405,14 @@ NOTE_C_DEPRECATED J *NoteRequestResponseWithRetry(J *req, uint32_t timeoutSecond
402405
the memory associated with the request string.
403406
*/
404407
char * NoteRequestResponseJSON(const char *reqJSON);
408+
#pragma GCC diagnostic push
409+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
405410
NOTE_C_DEPRECATED void NoteSuspendTransactionDebug(void);
411+
#pragma GCC diagnostic pop
412+
#pragma GCC diagnostic push
413+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
406414
NOTE_C_DEPRECATED void NoteResumeTransactionDebug(void);
415+
#pragma GCC diagnostic pop
407416
#define SYNCSTATUS_LEVEL_MAJOR 0
408417
#define SYNCSTATUS_LEVEL_MINOR 1
409418
#define SYNCSTATUS_LEVEL_DETAILED 2
@@ -454,7 +463,10 @@ bool NoteRequest(J *req);
454463
@deprecated This function is deprecated. Please use `NoteConnect()` followed by
455464
the standard `NoteRequest()` function instead.
456465
*/
466+
#pragma GCC diagnostic push
467+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
457468
NOTE_C_DEPRECATED bool NoteRequestWithRetry(J *req, uint32_t timeoutSeconds);
469+
#pragma GCC diagnostic pop
458470
/*!
459471
@brief Set the request timeout for Notecard transactions.
460472
@@ -1777,7 +1789,10 @@ bool NoteLocationValidST(char *errbuf, uint32_t errbuflen);
17771789
17781790
@deprecated This function is deprecated and should not be used.
17791791
*/
1792+
#pragma GCC diagnostic push
1793+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
17801794
NOTE_C_DEPRECATED void NoteTurboIO(bool enable);
1795+
#pragma GCC diagnostic pop
17811796
/*!
17821797
@brief Get an integer environment variable from the Notecard.
17831798

0 commit comments

Comments
 (0)