<div dir="ltr">Hi Johannes Kauffmann,<div><br>Could you please share the patch file attached to the email?</div><div><br>Thanks,<br>Yaswanth.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 11, 2023 at 5:30 PM <<a href="mailto:x265-devel-request@videolan.org">x265-devel-request@videolan.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send x265-devel mailing list submissions to<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:x265-devel-request@videolan.org" target="_blank">x265-devel-request@videolan.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:x265-devel-owner@videolan.org" target="_blank">x265-devel-owner@videolan.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of x265-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. [PATCH] threading.h: fix WaitForSingleObject return type<br>
(Johannes Kauffmann)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 11 Jun 2023 13:24:12 +0200<br>
From: Johannes Kauffmann <<a href="mailto:johanneskauffmann@hotmail.com" target="_blank">johanneskauffmann@hotmail.com</a>><br>
To: <a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
Subject: [x265] [PATCH] threading.h: fix WaitForSingleObject return<br>
type<br>
Message-ID:<br>
<<a href="mailto:DB6PR07MB31752007A5FC8C995F37A877A657A@DB6PR07MB3175.eurprd07.prod.outlook.com" target="_blank">DB6PR07MB31752007A5FC8C995F37A877A657A@DB6PR07MB3175.eurprd07.prod.outlook.com</a>><br>
<br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
WaitForSingleObject returns a DWORD, which is unsigned. This fixes the<br>
following warning for every threading.h include:<br>
<br>
threading.h:285:41: warning: comparison of integer expressions of different signedness: ?int32_t? {aka ?int?} and ?DWORD? {aka ?long unsigned int?} [-Wsign-compare]<br>
285 | return rt != WAIT_TIMEOUT && rt != WAIT_FAILED;<br>
|<br>
---<br>
source/common/threading.h | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/source/common/threading.h b/source/common/threading.h<br>
index 8a5c39cf0..bcbd0eedf 100644<br>
--- a/source/common/threading.h<br>
+++ b/source/common/threading.h<br>
@@ -281,7 +281,7 @@ public:<br>
<br>
bool take(const uint32_t time_out = INFINITE)<br>
{<br>
- int32_t rt = WaitForSingleObject(m_sem, time_out);<br>
+ DWORD rt = WaitForSingleObject(m_sem, time_out);<br>
return rt != WAIT_TIMEOUT && rt != WAIT_FAILED;<br>
}<br>
<br>
-- <br>
2.34.1<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
<br>
<br>
------------------------------<br>
<br>
End of x265-devel Digest, Vol 120, Issue 4<br>
******************************************<br>
</blockquote></div>