summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2016-06-29 13:09:11 +0200
committerHans de Goede <[email protected]>2016-07-02 12:21:28 +0200
commit1f3c8f36641d785db201b97bd2e5fdfcbac4645d (patch)
tree4be3443e2a9364142ce396e821e09b0af400993a /src/gallium/drivers/nouveau/codegen
parent2aa1197eee442ab960f6ad6b84d4cf58511d6cb7 (diff)
nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings
Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h
index 7b0de856c20..c6194990461 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
{