From d2899e8db71fb6caa8eb992ba25eccde0234000b Mon Sep 17 00:00:00 2001 From: Horst Schirmeier Date: Mon, 9 Feb 2015 10:51:11 +0100 Subject: [PATCH] core/sal: silence "unused function" warning BochsHelpers.hpp is included by some aspect headers, which are implicitly included into many (all?) translation units. As in most TUs the "static inline" defined getCPU function is not used, every time a "unused function" warning was generated. Change-Id: Ibb903fe7a11aaf1f455a626c8bf8b86f50857645 --- src/core/sal/bochs/BochsHelpers.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/sal/bochs/BochsHelpers.hpp b/src/core/sal/bochs/BochsHelpers.hpp index 1ad125f4..b1d1ae4c 100644 --- a/src/core/sal/bochs/BochsHelpers.hpp +++ b/src/core/sal/bochs/BochsHelpers.hpp @@ -3,6 +3,7 @@ #include "cpu/cpu.h" +static inline BX_CPU_C *getCPU(BX_CPU_C *that) __attribute__((unused)); static inline BX_CPU_C *getCPU(BX_CPU_C *that) { #if BX_USE_CPU_SMF == 0