Skip to content

Commit e1deb64

Browse files
committed
Fiexd some build errors of freebsd with gcc-12.2.0.
1 parent 2e31158 commit e1deb64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

freebsd/kern/subr_taskqueue.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ taskqueue_task_nop_fn(void *context, int pending)
337337
static void
338338
taskqueue_drain_tq_queue(struct taskqueue *queue)
339339
{
340+
#ifdef FSTACK // for dangling-pointer
341+
static
342+
#endif
340343
struct task t_barrier;
341344

342345
if (STAILQ_EMPTY(&queue->tq_queue))

0 commit comments

Comments
 (0)