[FS#3982] Need rename "fallthrough" in libubox/utils.h to something other

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Tue Aug 17 17:46:24 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Kirill Zhumarin (Azq2) 

Attached to Project - OpenWrt/LEDE Project
Summary - Need rename "fallthrough" in libubox/utils.h to something other
Task Type - Bug Report
Category - Packages
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - This define: https://lxr.openwrt.org/source/libubox/utils.h#L236
Conflicts with package "nlohmannjson"

Example:
In file included from Json.h:2,
                 from Ubus.h:11,
                 from ModemService.h:6,
                 from ModemService.cpp:1:
/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/nlohmann/json.hpp:1689:42: error: missing ')' after "__has_attribute"
     JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
                                          ^
/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/nlohmann/json.hpp:1689:31: error: missing binary operator before token "("
     JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
                               ^~~~~~~~~~~
/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/nlohmann/json.hpp:1692:57: error: missing ')' after "__has_attribute"
 #elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
                                                         ^
/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/nlohmann/json.hpp:1692:46: error: missing binary operator before token "("
 #elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
                                              ^~~~~~~~~~~
/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/nlohmann/json.hpp:1694:48: error: missing ')' after "__has_attribute"
 #elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)
                                                ^
/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include/nlohmann/json.hpp:1694:37: error: missing binary operator before token "("
 #elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)


More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3982

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list