Fixed compile error.

This commit is contained in:
Branimir Karadzic 2014-10-21 23:00:23 -07:00
parent 07f052201a
commit c3ed0050d2

View file

@ -10,7 +10,7 @@
# define BGFX_CONFIG_DEBUG 0 # define BGFX_CONFIG_DEBUG 0
#endif // BGFX_CONFIG_DEBUG #endif // BGFX_CONFIG_DEBUG
#if BGFX_CONFIG_DEBUG || BX_COMPILER_CLANG_ANALYZER #if BGFX_CONFIG_DEBUG || defined(__clang_analyzer__)
# define BX_TRACE _BX_TRACE # define BX_TRACE _BX_TRACE
# define BX_WARN _BX_WARN # define BX_WARN _BX_WARN
# define BX_CHECK _BX_CHECK # define BX_CHECK _BX_CHECK
@ -29,11 +29,11 @@
namespace bgfx namespace bgfx
{ {
#if BX_COMPILER_CLANG_ANALYZER #if defined(__clang_analyzer__)
void __attribute__((analyzer_noreturn)) fatal(Fatal::Enum _code, const char* _format, ...); void __attribute__((analyzer_noreturn)) fatal(Fatal::Enum _code, const char* _format, ...);
#else #else
void fatal(Fatal::Enum _code, const char* _format, ...); void fatal(Fatal::Enum _code, const char* _format, ...);
#endif // BX_COMPILER_CLANG_ANALYZER #endif // defined(__clang_analyzer__)
void dbgPrintf(const char* _format, ...); void dbgPrintf(const char* _format, ...);
} }