From 4c3976d91d06afa22c08dcdffe0e0c49e707198f Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Tue, 8 Sep 2015 17:58:31 +0200 Subject: [PATCH] tests: add comment about GCC bug --- tests/test_platform.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_platform.c b/tests/test_platform.c index 1fce5e3..aa4221a 100644 --- a/tests/test_platform.c +++ b/tests/test_platform.c @@ -63,7 +63,12 @@ const char* test_platform__global_h() const char* test_platform__compiler() { - /* Check that initialization with { 0 } works as expected */ + /* Check that initialization with { 0 } works as expected + * + * Depending on your version, GCC can incorrectly reports the warning + * "missing braces around initializer [-Wmissing-braces]" + * See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 + */ { const gmio_transfer_t trsf_null_bracket0 = { 0 }; gmio_transfer_t trsf_null_memset0;