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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user