Subject: [PATCH] boilerplate: Fix bogus "typeof(type)" in macros References: From: Jan Kiszka Message-ID: Date: Wed, 10 Jul 2019 21:39:03 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cris Almaraz , xenomai From: Jan Kiszka This was ignored by most compilers so far, but it breaks at least under c++11. Reported-by: St=C3=A9phane Ancelot Reported-by: Cris Almaraz Signed-off-by: Jan Kiszka =2D-- Thanks for reporting (and sorry for the long patch delay). This should fix it. include/boilerplate/tunables.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boilerplate/tunables.h b/include/boilerplate/tunables= .h index db8523be67..38f414e455 100644 =2D-- a/include/boilerplate/tunables.h +++ b/include/boilerplate/tunables.h @@ -37,10 +37,10 @@ static inline int __may_change_config_tunable(void) __read_ ## __name ## _ ## __scope #define __define_tunable(__name, __type, __val, __scope) \ - void __tunable_set_call(__name, __scope)(typeof(__type) __val) + void __tunable_set_call(__name, __scope)(__type __val) #define __read_tunable(__name, __type, __scope) \ - typeof(__type) __tunable_get_call(__name, __scope)(void) + __type __tunable_get_call(__name, __scope)(void) #define define_config_tunable(__name, __type, __val) \ __define_tunable(__name, __type, __val, config) =2D- 2.16.4