From 8819350b742c87e4bf6bbe7b04cb047786323f35 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 18 Mar 2022 13:37:30 +0530 Subject: [PATCH] openexr: Fix some warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ``` ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:46:24: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 46 | virtual Int64 tellg (); | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:47:32: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 47 | virtual void seekg (Int64 pos); | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:67:26: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 67 | Int64 MemIStream::tellg () | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:73:29: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 73 | MemIStream::seekg (Int64 pos) | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ``` Part-of: --- subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp b/subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp index 32b1d03..d54b308 100644 --- a/subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp +++ b/subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp @@ -26,10 +26,10 @@ #include #include +#include #include #include -#include using namespace Imf; using namespace Imath; @@ -43,8 +43,8 @@ public: } virtual bool read (char c[], int n); - virtual Int64 tellg (); - virtual void seekg (Int64 pos); + virtual uint64_t tellg (); + virtual void seekg (uint64_t pos); virtual void clear (); private: @@ -64,13 +64,13 @@ bool MemIStream::read (char c[], int n) return (offset == size); } -Int64 MemIStream::tellg () +uint64_t MemIStream::tellg () { return offset; } void -MemIStream::seekg (Int64 pos) +MemIStream::seekg (uint64_t pos) { offset = pos; if (offset > size) -- 2.7.4