From: Hans de Goede Date: Wed, 29 Jun 2016 11:09:11 +0000 (+0200) Subject: nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f3c8f36641d785db201b97bd2e5fdfcbac4645d;p=mesa.git nouveau: Fix gcc6 / c++11 auto_ptr deprecation compiler warnings Signed-off-by: Hans de Goede Reviewed-by: Samuel Pitoiset --- 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 IteratorRef; +#else typedef std::auto_ptr IteratorRef; +#endif class ManipIterator : public Iterator {