[x265] [PATCH] Fix mingw build warnings

Aruna Matheswaran aruna at multicorewareinc.com
Wed Feb 10 17:47:20 UTC 2021


>From 475b750fbd810e64c82414b9d8169bad420fa8f6 Mon Sep 17 00:00:00 2001
From: Aruna <aruna at multicorewareinc.com>
Date: Tue, 9 Feb 2021 14:25:24 +0530
Subject: [PATCH] Fix mingw build warnings

---
 source/x265.cpp  | 8 +++++---
 source/x265cli.h | 2 --
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/source/x265.cpp b/source/x265.cpp
index 758c2adec..fae83dc5a 100644
--- a/source/x265.cpp
+++ b/source/x265.cpp
@@ -46,9 +46,11 @@
 using namespace X265_NS;

 #define X265_HEAD_ENTRIES 3
-
-#ifdef _WIN32
-#define strdup _strdup
+#define CONSOLE_TITLE_SIZE 200
+
+#ifdef _WIN32
+#define strdup _strdup
+static char orgConsoleTitle[CONSOLE_TITLE_SIZE] = "";
 #endif

 #ifdef _WIN32
diff --git a/source/x265cli.h b/source/x265cli.h
index 7a2e0a267..47f1ad25d 100644
--- a/source/x265cli.h
+++ b/source/x265cli.h
@@ -33,11 +33,9 @@

 #include <getopt.h>

-#define CONSOLE_TITLE_SIZE 200
 #ifdef _WIN32
 #include <windows.h>
 #define SetThreadExecutionState(es)
-static char orgConsoleTitle[CONSOLE_TITLE_SIZE] = "";
 #else
 #define GetConsoleTitle(t, n)
 #define SetConsoleTitle(t)
-- 
2.20.1.windows.1


-- 
Regards,
*Aruna Matheswaran,*
Video Codec Engineer,
Media & AI analytics BU,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20210210/0a407a0f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 1125 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20210210/0a407a0f/attachment.obj>


More information about the x265-devel mailing list