Subject: [PATCH v2] boilerplate: Fix non-conforming usage of typeof in interface, headers From: Jan Kiszka References: <2db36c82-bc3a-7968-77fd-4d338999851e@xenomai.org> <2a01ec5b-11ae-ced0-bc34-e53435926e7e@web.de> Message-ID: <9f514986-11c3-3bb7-c8ec-473a56d7ea00@web.de> Date: Wed, 10 Jul 2019 23:54:02 +0200 MIME-Version: 1.0 In-Reply-To: <2a01ec5b-11ae-ced0-bc34-e53435926e7e@web.de> 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: Philippe Gerum , Cris Almaraz , xenomai From: Jan Kiszka This fixes build breakages when using standard-conforming build, e.g. -std=3Dc++11. Reported-by: St=C3=A9phane Ancelot Reported-by: Cris Almaraz Signed-off-by: Jan Kiszka =2D-- This should make everyone happy. 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..397ffc8939 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)(__typeof__(__type) __val) #define __read_tunable(__name, __type, __scope) \ - typeof(__type) __tunable_get_call(__name, __scope)(void) + __typeof__(__type) __tunable_get_call(__name, __scope)(void) #define define_config_tunable(__name, __type, __val) \ __define_tunable(__name, __type, __val, config) =2D- 2.16.4