summaryrefslogtreecommitdiffhomepage
path: root/compat/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/util.hpp')
-rw-r--r--compat/util.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/util.hpp b/compat/util.hpp
index abcc9ba2..3a28ce90 100644
--- a/compat/util.hpp
+++ b/compat/util.hpp
@@ -112,3 +112,9 @@ auto run_in_thread_sync(QObject* obj, F&& fun)
cvar.wait(guard);
return traits::pass(std::move(ret));
}
+
+#if defined(_MSC_VER) && !defined(Q_CREATOR_RUN)
+# define DEFUN_WARN_UNUSED _Check_return_
+#else
+# define DEFUN_WARN_UNUSED __attribute__((warn_unused_result))
+#endif