OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Kirill Zhumarin - 18.08.2021

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

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)

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing