diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2021-11-05 10:51:58 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2021-11-05 10:51:58 +0100 |
commit | d5de2a0cdb3dcfe553a841db24f273e074d8f49d (patch) | |
tree | dcd2d709ccf9330e2c605ea14c7b1d17944bb252 /kernel | |
parent | cbb6887ac846dbbaa420253a9f3656bd3b6bd92d (diff) | |
download | yosys-d5de2a0cdb3dcfe553a841db24f273e074d8f49d.tar.gz yosys-d5de2a0cdb3dcfe553a841db24f273e074d8f49d.tar.bz2 yosys-d5de2a0cdb3dcfe553a841db24f273e074d8f49d.zip |
Make it work on all
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h index 7fe8dc4f4..826e7f4cd 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -147,9 +147,7 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p # define YS_ATTRIBUTE(...) #endif -#if __cplusplus >= 201703L -# define YS_MAYBE_UNUSED [[maybe_unused]] -#elif defined(__GNUC__) || defined(__clang__) +#if defined(__GNUC__) || defined(__clang__) # define YS_MAYBE_UNUSED __attribute__((__unused__)) #else # define YS_MAYBE_UNUSED |