diff --git a/include/etl/generators/message_packet_generator.h b/include/etl/generators/message_packet_generator.h index 36430509..59f3b7e5 100644 --- a/include/etl/generators/message_packet_generator.h +++ b/include/etl/generators/message_packet_generator.h @@ -375,6 +375,7 @@ namespace etl } #include "private/diagnostic_pop.h" +#include "private/diagnostic_uninitialized_push.h" //******************************************** template bool add_new_message_type(etl::imessage&& msg) @@ -390,6 +391,7 @@ namespace etl return false; } } +#include "private/diagnostic_pop.h" typename etl::aligned_storage::type data; bool valid; diff --git a/include/etl/message_packet.h b/include/etl/message_packet.h index 24f1e157..ef419bc4 100644 --- a/include/etl/message_packet.h +++ b/include/etl/message_packet.h @@ -363,6 +363,7 @@ namespace etl } #include "private/diagnostic_pop.h" +#include "private/diagnostic_uninitialized_push.h" //******************************************** template bool add_new_message_type(etl::imessage&& msg) @@ -378,6 +379,7 @@ namespace etl return false; } } +#include "private/diagnostic_pop.h" typename etl::aligned_storage::type data; bool valid; diff --git a/include/etl/string_utilities.h b/include/etl/string_utilities.h index 64e0365e..9da91c91 100644 --- a/include/etl/string_utilities.h +++ b/include/etl/string_utilities.h @@ -713,6 +713,7 @@ namespace etl //*************************************************************************** /// get_token //*************************************************************************** +#include "private/diagnostic_uninitialized_push.h" template etl::optional get_token(const TInput& input, typename TInput::const_pointer delimiters, const etl::optional& last_view, bool ignore_empty_tokens) { @@ -755,6 +756,7 @@ namespace etl return etl::optional(view); } +#include "private/diagnostic_pop.h" //*************************************************************************** /// get_token_list diff --git a/test/test_vector.cpp b/test/test_vector.cpp index c1e679a4..b99b11c7 100644 --- a/test/test_vector.cpp +++ b/test/test_vector.cpp @@ -513,6 +513,7 @@ namespace } //************************************************************************* +#include "etl/private/diagnostic_uninitialized_push.h" TEST_FIXTURE(SetupFixture, test_front) { Compare_Data compare_data(initial_data.begin(), initial_data.end()); @@ -523,8 +524,10 @@ namespace Data emptyData; CHECK_THROW(emptyData.front(), etl::vector_out_of_bounds); } +#include "etl/private/diagnostic_pop.h" //************************************************************************* +#include "etl/private/diagnostic_uninitialized_push.h" TEST_FIXTURE(SetupFixture, test_front_const) { const Compare_Data compare_data(initial_data.begin(), initial_data.end()); @@ -535,6 +538,7 @@ namespace const Data emptyData; CHECK_THROW(emptyData.front(), etl::vector_out_of_bounds); } +#include "etl/private/diagnostic_pop.h" //************************************************************************* TEST_FIXTURE(SetupFixture, test_back) @@ -998,6 +1002,7 @@ namespace } //************************************************************************* +#include "etl/private/diagnostic_uninitialized_push.h" TEST_FIXTURE(SetupFixture, test_insert_position_n_value_outofbounds) { const int INITIAL_VALUE = 0; @@ -1007,6 +1012,7 @@ namespace CHECK_THROW(data.insert(data2.end(), 1, INITIAL_VALUE);, etl::vector_out_of_bounds); } +#include "etl/private/diagnostic_pop.h" //************************************************************************* TEST_FIXTURE(SetupFixture, test_insert_position_n_value_excess) @@ -1062,6 +1068,7 @@ namespace } //************************************************************************* +#include "etl/private/diagnostic_uninitialized_push.h" TEST_FIXTURE(SetupFixture, test_insert_position_range_out_of_bounds) { Data data; @@ -1069,6 +1076,7 @@ namespace CHECK_THROW(data.insert(data2.end(), insert_data.cbegin(), insert_data.cend());, etl::vector_out_of_bounds); } +#include "etl/private/diagnostic_pop.h" //************************************************************************* TEST_FIXTURE(SetupFixture, test_insert_position_range_excess) diff --git a/test/test_vector_non_trivial.cpp b/test/test_vector_non_trivial.cpp index 99772202..e2a4d085 100644 --- a/test/test_vector_non_trivial.cpp +++ b/test/test_vector_non_trivial.cpp @@ -1022,6 +1022,7 @@ namespace } //************************************************************************* +#include "etl/private/diagnostic_array_bounds_push.h" TEST(test_emplace_out_of_range_before_begin) { DataNDC data; @@ -1032,6 +1033,7 @@ namespace CHECK_THROW(data.emplace(it, INITIAL_VALUE), etl::vector_out_of_bounds); } +#include "etl/private/diagnostic_pop.h" //************************************************************************* #include "etl/private/diagnostic_array_bounds_push.h"