This reverts commit 9e2289785b7a12684d96c72e219523e2810f0f10. There is no issue with the T_flags_not_null() macro. The uninitialized use warnings must be fixed at the caller side of the macro. --- cpukit/include/rtems/test.h | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h index e0823394d1..c283be7860 100644 --- a/cpukit/include/rtems/test.h +++ b/cpukit/include/rtems/test.h @@ -218,19 +218,12 @@ void T_check_null(const T_check_context_msg *, const void *); void T_check_not_null(const T_check_context_msg *, const void *); -/* - * This was added to address the following warning. - * warning: 'a' may be used uninitialized - */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #define T_flags_not_null(a, flags, sa) \ { \ static const T_check_context_msg T_check_instance = { \ { T_FILE_NAME, __LINE__, (flags) | T_CHECK_FMT }, sa }; \ T_check_not_null(&T_check_instance, a); \ } -#pragma GCC diagnostic pop void T_check_eq_mem(const T_check_context_msg *, const void *, const void *, size_t); -- 2.35.3 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel