diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-03-20 17:49:44 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-03-26 13:41:17 +0200 |
commit | bb3b8f0fec820c9b54519298f920728ad4545ec1 (patch) | |
tree | 0d2462017e2ff3a15499d7d714662cf9d384ee07 | |
parent | 2c66de06a04fe4cf9b2441ae0ac7838922d52251 (diff) |
pipeline: rpi: pisp: Fix uninitialized variable warning
gcc 13.3.0 from buildroot 2024.11.1 complains about an uninitialized
variable. This is a false positive as the cfe_ array can't be empty.
Nonetheless, it breaks builds, so initialize the variable to work around
the issue.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/libcamera/pipeline/rpi/pisp/pisp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/rpi/pisp/pisp.cpp b/src/libcamera/pipeline/rpi/pisp/pisp.cpp index 0f9e3326..42ca7c80 100644 --- a/src/libcamera/pipeline/rpi/pisp/pisp.cpp +++ b/src/libcamera/pipeline/rpi/pisp/pisp.cpp @@ -1700,7 +1700,7 @@ void PiSPCameraData::platformFreeBuffers() void PiSPCameraData::cfeBufferDequeue(FrameBuffer *buffer) { RPi::Stream *stream = nullptr; - int index; + int index = 0; if (!isRunning()) return; |