GCC compatibility updates

This commit is contained in:
John Wellbelove 2024-10-18 09:44:56 +01:00
parent 336073ba3d
commit 3e4ad14dfe
5 changed files with 10 additions and 6 deletions

View File

@ -125,7 +125,7 @@ namespace etl
template <size_t N>
struct nth_type<N, type_list<>>
{
ETL_STATIC_ASSERT(false, "etl::nth_type invoked for empty etl::type_list");
//ETL_STATIC_ASSERT(false, "etl::nth_type invoked for empty etl::type_list");
};
//***************************************************************************

View File

@ -143,6 +143,7 @@ add_executable(etl_tests
test_fsm.cpp
test_function.cpp
test_functional.cpp
test_function_traits.cpp
test_gamma.cpp
test_hash.cpp
test_hfsm.cpp
@ -283,6 +284,7 @@ add_executable(etl_tests
test_to_u8string.cpp
test_to_wstring.cpp
test_type_def.cpp
test_type_list.cpp
test_type_lookup.cpp
test_type_select.cpp
test_type_traits.cpp

View File

@ -261,8 +261,10 @@ namespace
Object object_static;
const Object const_object_static;
#if ETL_USING_CPP17
Functor functor_static;
const FunctorConst const_functor_static;
#endif
}
namespace
@ -677,7 +679,7 @@ namespace
}
#endif
#if !defined(ETL_COMPILER_GCC)
#if !(defined(ETL_COMPILER_GCC) && (__GNUC__ <= 8))
//*************************************************************************
TEST_FIXTURE(SetupFixture, test_member_operator_void_compile_time)
{

View File

@ -47,7 +47,7 @@ namespace
//*****************************************************************************
int free_int(int i, int j)
{
return 0;
return i + j;
}
//*****************************************************************************
@ -71,18 +71,19 @@ namespace
// int
int member_int(int i, int j)
{
return 0;
return i + j;
}
int member_int_const(int i, int j) const
{
return 0;
return i + j;
}
//*******************************************
// static
static void member_static(int j)
{
(void)j;
}
};
}

View File

@ -39,7 +39,6 @@ namespace
//*************************************************************************
TEST(test_type_list_nth_type)
{
using tl0 = etl::type_list<>;
using tl1 = etl::type_list<char>;
using tl2 = etl::type_list<char, short>;
using tl3 = etl::type_list<char, short, int>;