Skip to content

Commit 3bf3bfe

Browse files
committed
rpicam_detect: Fix unused variable warning
Replace for loop with while(true) Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent f9b89b8 commit 3bf3bfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/rpicam_detect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void event_loop(RPiCamDetectApp &app)
5959
auto start_time = std::chrono::high_resolution_clock::now();
6060
unsigned int last_capture_frame = 0;
6161

62-
for (unsigned int count = 0;; count++)
62+
while (true)
6363
{
6464
RPiCamApp::Msg msg = app.Wait();
6565
if (msg.type == RPiCamApp::MsgType::Timeout)

0 commit comments

Comments
 (0)