diff options
-rw-r--r-- | meta-oe/recipes-support/libcereal/files/0001-Fix-instances-of-Wmissing-template-arg-list-after-te.patch | 41 | ||||
-rw-r--r-- | meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libcereal/files/0001-Fix-instances-of-Wmissing-template-arg-list-after-te.patch b/meta-oe/recipes-support/libcereal/files/0001-Fix-instances-of-Wmissing-template-arg-list-after-te.patch new file mode 100644 index 0000000000..86ee6902f2 --- /dev/null +++ b/meta-oe/recipes-support/libcereal/files/0001-Fix-instances-of-Wmissing-template-arg-list-after-te.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 395cd70a8c28a4ea408a227d745fe20ed8af9105 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 10 Sep 2024 18:11:40 -0700 | ||
4 | Subject: [PATCH] Fix instances of | ||
5 | -Wmissing-template-arg-list-after-template-kw. | ||
6 | |||
7 | Clang has a new warning that requires a template argument list after using | ||
8 | the template keyword. Remove uses of the template keyword when we're not | ||
9 | specifying types. | ||
10 | |||
11 | See https://github.com/llvm/llvm-project/issues/94194 for the upstream | ||
12 | clang changes | ||
13 | |||
14 | Upstream-Status: Submitted [https://github.com/USCiLab/cereal/pull/835] | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | include/cereal/types/tuple.hpp | 4 ++-- | ||
18 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/include/cereal/types/tuple.hpp b/include/cereal/types/tuple.hpp | ||
21 | index 80c68075..5c79eca9 100644 | ||
22 | --- a/include/cereal/types/tuple.hpp | ||
23 | +++ b/include/cereal/types/tuple.hpp | ||
24 | @@ -95,7 +95,7 @@ namespace cereal | ||
25 | template <class Archive, class ... Types> inline | ||
26 | static void apply( Archive & ar, std::tuple<Types...> & tuple ) | ||
27 | { | ||
28 | - serialize<Height - 1>::template apply( ar, tuple ); | ||
29 | + serialize<Height - 1>::apply( ar, tuple ); | ||
30 | ar( CEREAL_NVP_(tuple_element_name<Height - 1>::c_str(), | ||
31 | std::get<Height - 1>( tuple )) ); | ||
32 | } | ||
33 | @@ -116,7 +116,7 @@ namespace cereal | ||
34 | template <class Archive, class ... Types> inline | ||
35 | void CEREAL_SERIALIZE_FUNCTION_NAME( Archive & ar, std::tuple<Types...> & tuple ) | ||
36 | { | ||
37 | - tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::template apply( ar, tuple ); | ||
38 | + tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::apply( ar, tuple ); | ||
39 | } | ||
40 | } // namespace cereal | ||
41 | |||
diff --git a/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb b/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb index 6ad20d6370..c2ab0d61b8 100644 --- a/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb +++ b/meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb | |||
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/USCiLab/cereal.git;branch=master;protocol=https \ | |||
22 | file://0001-sandbox-Do-not-use-int8_t-in-std-uniform_int_distrib.patch \ | 22 | file://0001-sandbox-Do-not-use-int8_t-in-std-uniform_int_distrib.patch \ |
23 | file://0001-cmake-Use-idirafter-instead-of-isystem.patch \ | 23 | file://0001-cmake-Use-idirafter-instead-of-isystem.patch \ |
24 | file://0001-doctest-Do-not-use-unnamed-class.patch \ | 24 | file://0001-doctest-Do-not-use-unnamed-class.patch \ |
25 | file://0001-Fix-instances-of-Wmissing-template-arg-list-after-te.patch \ | ||
25 | file://run-ptest \ | 26 | file://run-ptest \ |
26 | " | 27 | " |
27 | 28 | ||