From: Jan Kiszka <jan.kis...@siemens.com>

This fixes build breakages when using standard-conforming build, e.g.
-std=c++11.

Reported-by: Stéphane Ancelot <sance...@numalliance.com>
Reported-by: Cris Almaraz <cristina.alma...@gmail.com>
Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
---

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
--- 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)
--
2.16.4

Reply via email to