mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Silence format-zero-length warning
This commit is contained in:
parent
048f4278c0
commit
77884360d6
1 changed files with 2 additions and 0 deletions
|
@ -34043,6 +34043,7 @@ typedef struct BCReaderState {
|
|||
} BCReaderState;
|
||||
|
||||
#ifdef DUMP_READ_OBJECT
|
||||
#pragma GCC diagnostic ignored "-Wformat-zero-length"
|
||||
static void __attribute__((format(printf, 2, 3))) bc_read_trace(BCReaderState *s, const char *fmt, ...) {
|
||||
va_list ap;
|
||||
int i, n, n0;
|
||||
|
@ -34076,6 +34077,7 @@ static void __attribute__((format(printf, 2, 3))) bc_read_trace(BCReaderState *s
|
|||
if (strchr(fmt, '{'))
|
||||
s->level++;
|
||||
}
|
||||
#pragma GCC diagnostic warning "-Wformat-zero-length"
|
||||
#else
|
||||
#define bc_read_trace(...)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue