summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/RefCntAutoPtr.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/interface/RefCntAutoPtr.hpp b/Common/interface/RefCntAutoPtr.hpp
index d8265366..2b89ffe8 100644
--- a/Common/interface/RefCntAutoPtr.hpp
+++ b/Common/interface/RefCntAutoPtr.hpp
@@ -31,7 +31,7 @@
#include "../../Platforms/interface/Atomics.hpp"
#include "ValidatedCast.hpp"
#include "RefCountedObjectImpl.hpp"
-
+#include "CompilerDefinitions.h"
namespace Diligent
{
@@ -136,7 +136,7 @@ public:
m_pObject = pObj;
}
- T* Detach() noexcept
+ NODISCARD T* Detach() noexcept
{
T* pObj = m_pObject;
m_pObject = nullptr;