diff options
Diffstat (limited to 'meta-oe/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch')
-rw-r--r-- | meta-oe/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch b/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch new file mode 100644 index 0000000000..c8c9922d55 --- /dev/null +++ b/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From dee78f822d8a5b985e565e5c1ef42a59557aa8fc Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 7 Mar 2025 11:35:46 -0800 | ||
4 | Subject: [PATCH] Remove whitespace in operator"" | ||
5 | |||
6 | Clang 20+ errors about this whitespace. | ||
7 | |||
8 | Fixes | ||
9 | include/toml11/impl/../fwd/literal_fwd.hpp:22:26: error: identifier '_toml' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator] | ||
10 | | 22 | ::toml::value operator"" _toml(const char* str, std::size_t len); | ||
11 | | | ~~~~~~~~~~~^~~~~ | ||
12 | | | operator""_toml | ||
13 | |||
14 | Upstream-Status: Submitted [https://github.com/ToruNiina/toml11/pull/285] | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | include/toml11/fwd/literal_fwd.hpp | 2 +- | ||
18 | include/toml11/impl/literal_impl.hpp | 2 +- | ||
19 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/include/toml11/fwd/literal_fwd.hpp b/include/toml11/fwd/literal_fwd.hpp | ||
22 | index e46612c..82f62b7 100644 | ||
23 | --- a/include/toml11/fwd/literal_fwd.hpp | ||
24 | +++ b/include/toml11/fwd/literal_fwd.hpp | ||
25 | @@ -19,7 +19,7 @@ inline namespace literals | ||
26 | inline namespace toml_literals | ||
27 | { | ||
28 | |||
29 | -::toml::value operator"" _toml(const char* str, std::size_t len); | ||
30 | +::toml::value operator""_toml(const char* str, std::size_t len); | ||
31 | |||
32 | #if defined(TOML11_HAS_CHAR8_T) | ||
33 | // value of u8"" literal has been changed from char to char8_t and char8_t is | ||
34 | diff --git a/include/toml11/impl/literal_impl.hpp b/include/toml11/impl/literal_impl.hpp | ||
35 | index e8298c2..067d4ed 100644 | ||
36 | --- a/include/toml11/impl/literal_impl.hpp | ||
37 | +++ b/include/toml11/impl/literal_impl.hpp | ||
38 | @@ -115,7 +115,7 @@ inline namespace toml_literals | ||
39 | { | ||
40 | |||
41 | TOML11_INLINE ::toml::value | ||
42 | -operator"" _toml(const char* str, std::size_t len) | ||
43 | +operator""_toml(const char* str, std::size_t len) | ||
44 | { | ||
45 | if(len == 0) | ||
46 | { | ||