Use [[maybe_unused]] instead of YS_ATTRIBUTE(unused).
authorwhitequark <whitequark@whitequark.org>
Fri, 19 Jun 2020 15:45:52 +0000 (15:45 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 19 Jun 2020 15:48:58 +0000 (15:48 +0000)
commitc8c3c7af87804a175b3dfc60dce191b03c9741fe
tree1494e38f9c0ff81cf6eb3fd372b34cffc2e9e3c1
parent118e4caa37aa437974d9ec2ac65a4c6048cf6291
Use [[maybe_unused]] instead of YS_ATTRIBUTE(unused).

[[maybe_unused]] is available since C++17, so this commit adds
a polyfill YS_MAYBE_UNUSED. Once we require C++17 we can drop it.
kernel/yosys.h
passes/pmgen/pmgen.py