Skip to content

Commit 7788436

Browse files
committed
Silence format-zero-length warning
1 parent 048f427 commit 7788436

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

quickjs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34043,6 +34043,7 @@ typedef struct BCReaderState {
3404334043
} BCReaderState;
3404434044

3404534045
#ifdef DUMP_READ_OBJECT
34046+
#pragma GCC diagnostic ignored "-Wformat-zero-length"
3404634047
static void __attribute__((format(printf, 2, 3))) bc_read_trace(BCReaderState *s, const char *fmt, ...) {
3404734048
va_list ap;
3404834049
int i, n, n0;
@@ -34076,6 +34077,7 @@ static void __attribute__((format(printf, 2, 3))) bc_read_trace(BCReaderState *s
3407634077
if (strchr(fmt, '{'))
3407734078
s->level++;
3407834079
}
34080+
#pragma GCC diagnostic warning "-Wformat-zero-length"
3407934081
#else
3408034082
#define bc_read_trace(...)
3408134083
#endif

0 commit comments

Comments
 (0)