This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: cec-ctl/edid-decode: fix arm architecture warnings
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Fri Apr 11 08:04:09 2025 +0200

Fix a signed/unsigned comparison warning that cropped up
when compiling for arm 32 bit.

Just cast 'secs' to time_t.

Signed-off-by: Hans Verkuil <hverk...@xs4all.nl>

 utils/cec-ctl/cec-ctl.cpp | 2 +-
 utils/edid-decode/ddc.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=c1f50631f42520ff3887eeba2ac63b0e9cdc7888
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index b23ac025013f..3e810309936f 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1358,7 +1358,7 @@ static void test_reliability(const struct node &node, 
unsigned int to, unsigned
                if (!pass)
                        std::exit(EXIT_FAILURE);
                time_t cur = time(NULL);
-               if (secs && cur - start > secs)
+               if (secs && cur - start > (time_t)secs)
                        break;
        }
        printf("%u iterations over %u seconds: PASS\n", iter, secs);
diff --git a/utils/edid-decode/ddc.cpp b/utils/edid-decode/ddc.cpp
index 8d864a9bea7a..235e2e01f048 100644
--- a/utils/edid-decode/ddc.cpp
+++ b/utils/edid-decode/ddc.cpp
@@ -231,7 +231,7 @@ int test_reliability(int adapter_fd, unsigned secs, 
unsigned msleep)
                        return -1;
                }
                time_t cur = time(NULL);
-               if (secs && cur - start_test > secs)
+               if (secs && cur - start_test > (time_t)secs)
                        break;
                if (cur - start >= 10) {
                        start = cur;

Reply via email to