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
This commit is contained in:
Horst Schirmeier
2015-02-09 10:51:11 +01:00
parent 8973f65a50
commit d2899e8db7

View File

@ -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