C++ provides a unified syntax for compiler extensions so use them
instead of redefining our own.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
}
::std::shared_ptr<edge_event::impl>
-edge_event::impl_external::copy(const ::std::shared_ptr<impl>& self GPIOD_CXX_UNUSED) const
+edge_event::impl_external::copy([[maybe_unused]] const ::std::shared_ptr<impl>& self) const
{
::std::shared_ptr<impl> ret(new impl_managed);
impl_managed& managed = dynamic_cast<impl_managed&>(*ret);
#include "gpiod.hpp"
-#define GPIOD_CXX_UNUSED __attribute__((unused))
-
namespace gpiod {
template<class cxx_enum_type, class c_enum_type>