commit | ab995c50185c37cf11e8b9fefcbb184bcd516e2d | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Jul 12 15:43:52 2023 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Jul 12 16:00:24 2023 -0500 |
tree | 269c9ed7a58019cfb6ec23dfafac8743bf47ed2b | |
parent | 0ceda043fa13a077e940ad15e6865e26e5e16e88 [diff] |
fd: avoid move-to-self When compiling with C++23, GCC-13 raises the following compiler failure: ``` ../test/internal/fd.cpp:182:8: error: moving ‘fd’ of type ‘gpioplus::internal::Fd’ to itself [-Werror=self-move] ``` Switch to an explicit `static_cast` to test the same functionality but avoid the error. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I81e36b05d51fd8b11b1e99d62426dd516c3676ed
gpioplus is a c++ wrapper around the linux gpio ioctl interface. It aims to provide c++ ergonomics to the usage.
For a standard release build, you want something like:
meson setup -Dexamples=false -Dtests=disabled builddir ninja -C builddir ninja -C builddir install
For a test / debug build, a typical configuration is
meson setup -Dtests=enabled builddir meson test -C builddir