From: Kevin Day Date: Fri, 11 Aug 2023 01:23:18 +0000 (-0500) Subject: Cleanup: Use '{ 0 }' as initializer for f_thread_set_t_initialize. X-Git-Tag: 0.6.7~10 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=94b3bcaac6fdef4fc8d2243fbe573f8f318064e0;p=fll Cleanup: Use '{ 0 }' as initializer for f_thread_set_t_initialize. The f_thread_attribute_t_initialize works using '{ 0 }' as the initializer. For whatever reason, the compilers do not like explicit initializers with the auto NULL ones like '{ 0 }'. Switching to '{ 0 }' makes compilers happy and making compilers happy is often a good thing. --- diff --git a/level_0/f_thread/c/thread/set.h b/level_0/f_thread/c/thread/set.h index 1a3e959..2dd9316 100644 --- a/level_0/f_thread/c/thread/set.h +++ b/level_0/f_thread/c/thread/set.h @@ -30,7 +30,7 @@ extern "C" { int result; } f_thread_set_t; - #define f_thread_set_t_initialize { f_thread_attribute_t_initialize, f_thread_id_t_initialize, 0 } + #define f_thread_set_t_initialize { 0 } #define macro_f_thread_set_t_initialize(attribute, id, result) { attribute, id, result }