mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
libtoml11: Fix build with C23 and clang
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
From 6af7de3d5eaae59c53c42aab8eca1e1e9a365da5 Mon Sep 17 00:00:00 2001
|
||||
From: Steffen Winter <steffen.winter@proton.me>
|
||||
Date: Thu, 25 Dec 2025 20:48:02 +0100
|
||||
Subject: [PATCH] Remove more whitespaces after operator""
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/ToruNiina/toml11/pull/306]
|
||||
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
|
||||
---
|
||||
include/toml11/fwd/literal_fwd.hpp | 4 ++--
|
||||
include/toml11/impl/literal_impl.hpp | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/include/toml11/fwd/literal_fwd.hpp
|
||||
+++ b/include/toml11/fwd/literal_fwd.hpp
|
||||
@@ -24,7 +24,7 @@ inline namespace toml_literals
|
||||
#if defined(TOML11_HAS_CHAR8_T)
|
||||
// value of u8"" literal has been changed from char to char8_t and char8_t is
|
||||
// NOT compatible to char
|
||||
-::toml::value operator"" _toml(const char8_t* str, std::size_t len);
|
||||
+::toml::value operator""_toml(const char8_t* str, std::size_t len);
|
||||
#endif
|
||||
|
||||
} // toml_literals
|
||||
--- a/include/toml11/impl/literal_impl.hpp
|
||||
+++ b/include/toml11/impl/literal_impl.hpp
|
||||
@@ -146,7 +146,7 @@ operator""_toml(const char* str, std::si
|
||||
// value of u8"" literal has been changed from char to char8_t and char8_t is
|
||||
// NOT compatible to char
|
||||
TOML11_INLINE ::toml::value
|
||||
-operator"" _toml(const char8_t* str, std::size_t len)
|
||||
+operator""_toml(const char8_t* str, std::size_t len)
|
||||
{
|
||||
if(len == 0)
|
||||
{
|
||||
@@ -16,12 +16,15 @@ PE = "1"
|
||||
SRC_URI = "\
|
||||
gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main;tag=v${PV} \
|
||||
file://0001-Remove-whitespace-in-operator.patch \
|
||||
file://0001-Remove-more-whitespaces-after-operator.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286"
|
||||
|
||||
inherit cmake ptest
|
||||
|
||||
CXXFLAGS:append:toolchain-clang = " -Wno-error=c2y-extensions"
|
||||
|
||||
EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \
|
||||
-DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", "1", "ON", "OFF", d)} \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user