Mesa (master): nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings

Hans de Goede jwrdegoede at kemper.freedesktop.org
Sat Jul 2 10:22:25 UTC 2016


Module: Mesa
Branch: master
Commit: 1f3c8f36641d785db201b97bd2e5fdfcbac4645d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f3c8f36641d785db201b97bd2e5fdfcbac4645d

Author: Hans de Goede <hdegoede at redhat.com>
Date:   Wed Jun 29 13:09:11 2016 +0200

nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_util.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h
index 7b0de85..c619499 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h
@@ -94,7 +94,11 @@ public:
    virtual void reset() { assert(0); } // only for graph iterators
 };
 
+#if __cplusplus >= 201103L
+typedef std::unique_ptr<Iterator> IteratorRef;
+#else
 typedef std::auto_ptr<Iterator> IteratorRef;
+#endif
 
 class ManipIterator : public Iterator
 {




More information about the mesa-commit mailing list