Skip to content

Commit

Permalink
disable -Wgnu-zero-variadic-macro-arguments for stdexec/exec
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorostsa committed Jun 3, 2024
1 parent 1a188f2 commit ae84bb4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@

#ifdef HPX_HAVE_STDEXEC
#include <hpx/execution_base/stdexec_forward.hpp>

#if defined(HPX_GCC_VERSION) || defined(HPX_CLANG_VERSION)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#include <exec/env.hpp>
#pragma GCC diagnostic pop
#else
#include <exec/env.hpp>
#endif

namespace hpx::execution::experimental {
using exec::with_t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
#include <hpx/config.hpp>

#ifdef HPX_HAVE_STDEXEC

#if defined(HPX_GCC_VERSION) || defined(HPX_CLANG_VERSION)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#include <stdexec/execution.hpp>
#pragma GCC diagnostic pop
#else
#include <stdexec/execution.hpp>
#endif

namespace hpx::execution::experimental {
// Domain
Expand Down

0 comments on commit ae84bb4

Please sign in to comment.