stdexec: ignore unused parameter warning
Upstream stdexec continues to add unused parameter warnings
that are reported by GCC -Wall. Add pragmas to squelch them
so that we don't need to keep chasing these.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia93113bb2136db365a112d69758b2d1fd61d3a24
diff --git a/include/sdbusplus/async/execution.hpp b/include/sdbusplus/async/execution.hpp
index a86ae3e..14adfaf 100644
--- a/include/sdbusplus/async/execution.hpp
+++ b/include/sdbusplus/async/execution.hpp
@@ -11,6 +11,7 @@
#pragma GCC diagnostic ignored "-Wnon-template-friend"
#endif
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <sdbusplus/async/stdexec/async_scope.hpp>
#include <sdbusplus/async/stdexec/coroutine.hpp>
#include <sdbusplus/async/stdexec/execution.hpp>
diff --git a/include/sdbusplus/async/task.hpp b/include/sdbusplus/async/task.hpp
index e2618e4..f378119 100644
--- a/include/sdbusplus/async/task.hpp
+++ b/include/sdbusplus/async/task.hpp
@@ -1,6 +1,9 @@
#pragma once
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <sdbusplus/async/stdexec/task.hpp>
+#pragma GCC diagnostic pop
namespace sdbusplus::async
{