Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
collada-dom
silence-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File silence-warnings.patch of Package collada-dom
From 5adebc004f9ee7bb0fc1f498205cf5449812ced1 Mon Sep 17 00:00:00 2001 From: Tan Li Boon <undisputed.seraphim@gmail.com> Date: Sat, 13 Nov 2021 10:06:46 +0900 Subject: [PATCH 1/2] collada-dom: Replace deprecated auto_ptr with unique_ptr --- dom/include/dae.h | 2 +- dom/include/dae/daeErrorHandler.h | 2 +- dom/include/dae/daeWin32Platform.h | 2 +- dom/src/dae/daeErrorHandler.cpp | 2 +- dom/test/1.4/domTest.cpp | 2 +- dom/test/1.5/domTest.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dom/include/dae.h b/dom/include/dae.h index e53388b..b041e55 100644 --- a/dom/include/dae.h +++ b/dom/include/dae.h @@ -290,7 +290,7 @@ class DLLSPEC DAE daeSidRefCache sidRefCache; daeString COLLADA_VERSION, COLLADA_NAMESPACE; // dynamic - std::auto_ptr<charEncoding> localCharEncoding; + std::unique_ptr<charEncoding> localCharEncoding; static charEncoding globalCharEncoding; }; diff --git a/dom/include/dae/daeErrorHandler.h b/dom/include/dae/daeErrorHandler.h index 6ffab01..8b02c15 100644 --- a/dom/include/dae/daeErrorHandler.h +++ b/dom/include/dae/daeErrorHandler.h @@ -55,7 +55,7 @@ class DLLSPEC daeErrorHandler { private: static daeErrorHandler *_instance; - static std::auto_ptr<daeErrorHandler> _defaultInstance; + static std::unique_ptr<daeErrorHandler> _defaultInstance; }; #endif diff --git a/dom/include/dae/daeWin32Platform.h b/dom/include/dae/daeWin32Platform.h index e501597..e97822c 100644 --- a/dom/include/dae/daeWin32Platform.h +++ b/dom/include/dae/daeWin32Platform.h @@ -38,7 +38,7 @@ typedef int intptr_t; // GCC doesn't understand "#pragma warning" #ifdef _MSC_VER -// class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'daeErrorHandler' +// class 'std::unique_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'daeErrorHandler' #pragma warning(disable: 4251) // warning C4100: 'profile' : unreferenced formal parameter #pragma warning(disable: 4100) diff --git a/dom/src/dae/daeErrorHandler.cpp b/dom/src/dae/daeErrorHandler.cpp index 264c343..e38c9da 100644 --- a/dom/src/dae/daeErrorHandler.cpp +++ b/dom/src/dae/daeErrorHandler.cpp @@ -10,7 +10,7 @@ #include <modules/stdErrPlugin.h> daeErrorHandler *daeErrorHandler::_instance = NULL; -std::auto_ptr<daeErrorHandler> daeErrorHandler::_defaultInstance(new stdErrPlugin); +std::unique_ptr<daeErrorHandler> daeErrorHandler::_defaultInstance(new stdErrPlugin); daeErrorHandler::daeErrorHandler() { } diff --git a/dom/test/1.4/domTest.cpp b/dom/test/1.4/domTest.cpp index 28aefa5..5e38019 100644 --- a/dom/test/1.4/domTest.cpp +++ b/dom/test/1.4/domTest.cpp @@ -368,7 +368,7 @@ DefineTest(tinyXmlLoad) { // saved document, and make sure the results are the same. DAE dae; CheckResult(dae.open(seymourOrig)); - auto_ptr<daeTinyXMLPlugin> tinyXmlPlugin(new daeTinyXMLPlugin); + unique_ptr<daeTinyXMLPlugin> tinyXmlPlugin(new daeTinyXMLPlugin); dae.setIOPlugin(tinyXmlPlugin.get()); CheckResult(dae.writeTo(seymourOrig, seymourTinyXml)); CheckResult(dae.open(seymourTinyXml)); diff --git a/dom/test/1.5/domTest.cpp b/dom/test/1.5/domTest.cpp index 0ba3449..1d4b7b5 100644 --- a/dom/test/1.5/domTest.cpp +++ b/dom/test/1.5/domTest.cpp @@ -371,7 +371,7 @@ DefineTest(tinyXmlLoad) { // saved document, and make sure the results are the same. DAE dae; CheckResult(dae.open(seymourOrig)); - auto_ptr<daeTinyXMLPlugin> tinyXmlPlugin(new daeTinyXMLPlugin); + unique_ptr<daeTinyXMLPlugin> tinyXmlPlugin(new daeTinyXMLPlugin); dae.setIOPlugin(tinyXmlPlugin.get()); CheckResult(dae.writeTo(seymourOrig, seymourTinyXml)); CheckResult(dae.open(seymourTinyXml)); From ae8697f7f4b1a1d964a9960a5497b2033a7aef4a Mon Sep 17 00:00:00 2001 From: Tan Li Boon <undisputed.seraphim@gmail.com> Date: Sat, 13 Nov 2021 10:07:25 +0900 Subject: [PATCH 2/2] daeDom.cpp: Silence Wconversion-null warnings --- dom/src/dae/daeDom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/src/dae/daeDom.cpp b/dom/src/dae/daeDom.cpp index 916116e..c5312af 100644 --- a/dom/src/dae/daeDom.cpp +++ b/dom/src/dae/daeDom.cpp @@ -111,7 +111,7 @@ daeInt getDomAnyID(DAE& dae) return ColladaDOM141::domAny::ID(); } #endif - return NULL; + return 0; } daeInt getDomSourceID(DAE& dae) @@ -126,7 +126,7 @@ daeInt getDomSourceID(DAE& dae) return ColladaDOM141::domSource::ID(); } #endif - return NULL; + return 0; } daeInt getDomCOLLADAID(const char* specversion) @@ -141,7 +141,7 @@ daeInt getDomCOLLADAID(const char* specversion) return ColladaDOM141::domCOLLADA::ID(); } #endif - return NULL; + return 0; } void copyElementAny(daeElementRef dstAny, daeElement* srcAny)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor