From 73d8b35610564cd6cac03ab6cef3882f5ac0215f Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Mon, 5 Dec 2022 16:26:12 -0600 Subject: [PATCH] gcc error when const is used Change to #define to be compatible with gcc. Change-Id: Id2a2b3dbeaaf7aea9b0e2075320c30f8bad50fc7 --- include/rdc/rdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rdc/rdc.h b/include/rdc/rdc.h index 8b7dd1e4fe..a35c7385bc 100755 --- a/include/rdc/rdc.h +++ b/include/rdc/rdc.h @@ -431,7 +431,7 @@ typedef enum { /** * @brief The maximum test cases to run */ -const uint32_t MAX_TEST_CASES = RDC_DIAG_TEST_LAST - RDC_DIAG_TEST_FIRST + 1; +#define MAX_TEST_CASES (RDC_DIAG_TEST_LAST - RDC_DIAG_TEST_FIRST + 1) /** * @brief The maximum length of the diagnostic messages