clang-tidy: Fix implicit copy constructor errors
The following errors were reported during clang-tidy enablement due
to the implicit copy constructor. These errors are suppressed using
pragma diagnostic ignore checks.
'''
../include/sdbusplus/async/stdexec/../stdexec/__detail/__env.hpp:463:11:
error: definition of implicit copy constructor for 'prop<stdexec::__queries::get_stop_token_t
../include/sdbusplus/async/stdexec/../stdexec/__detail/__env.hpp:501:10:
error: definition of implicit copy constructor for 'env<>' is deprecated because it has a
user-declared copy assignment operator [-Werror
../include/sdbusplus/async/stdexec/../stdexec/__detail/__env.hpp:544:10:
error: definition of implicit copy constructor for 'env<stdexec::__env::prop<stdexec::__queries::get_stop_token_t
../include/sdbusplus/async/stdexec/../stdexec/__detail/__env.hpp:609:14:
error: definition of implicit copy constructor for '__t' is deprecated because it has\
a user-declared copy assignment operator [-Werror
'''
Tested: Verified build and unit testing.
Change-Id: I0b74cdbd5b5c58ba3c01866ffb0509e070861db9
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/include/sdbusplus/async/execution.hpp b/include/sdbusplus/async/execution.hpp
index 14adfaf..8f6cf58 100644
--- a/include/sdbusplus/async/execution.hpp
+++ b/include/sdbusplus/async/execution.hpp
@@ -7,6 +7,8 @@
#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wnon-pod-varargs"
+#pragma clang diagnostic ignored "-Winconsistent-missing-override"
+#pragma clang diagnostic ignored "-Wdeprecated-copy"
#else
#pragma GCC diagnostic ignored "-Wnon-template-friend"
#endif