Commit cdf941e
authored
chore: fix unused variable in ffi example (#1825)
# What does this PR do?
This PR fixes an unused variable (`c`) which happens when the code is compiled with `NDEBUG` (which I think I accidentally did when I ran FFI tests for #1733). To work around this, I extracted the `c.load` from the `assert` and then always do `std::ignore = value` so that everything is always used.
Co-authored-by: thomas.kowalski <thomas.kowalski@datadoghq.com>1 parent 32f9679 commit cdf941e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
0 commit comments