From 5e2ac1584e061aa4d830691f49e24a44bf869951 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Jul 2025 16:33:08 -0500 Subject: [PATCH] cpukit/libblock/src/bdbuf.c: Uninitialized variable warning On some BSP builds, the variable q was reported as used before it was initialized. This is a false positive. The variable is now initialized to NULL to prevent this. --- cpukit/libblock/src/bdbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index ee6f1d9347..4fc68dcc9f 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -340,7 +340,7 @@ rtems_bdbuf_avl_insert(rtems_bdbuf_buffer** root, rtems_blkdev_bnum block = node->block; rtems_bdbuf_buffer* p = *root; - rtems_bdbuf_buffer* q; + rtems_bdbuf_buffer* q = NULL; rtems_bdbuf_buffer* p1; rtems_bdbuf_buffer* p2; rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];