From bd53db48618e602dbe241fbeadf207bd262dc7be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 12 May 2022 22:23:55 -0700 Subject: [PATCH] attribute const -> pure. --- include/bx/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/macros.h b/include/bx/macros.h index d31c831..162383f 100644 --- a/include/bx/macros.h +++ b/include/bx/macros.h @@ -66,7 +66,7 @@ # define BX_UNLIKELY(_x) __builtin_expect(!!(_x), 0) # define BX_NO_INLINE __attribute__( (noinline) ) # define BX_NO_RETURN __attribute__( (noreturn) ) -# define BX_CONST_FUNC __attribute__( (const) ) +# define BX_CONST_FUNC __attribute__( (pure) ) # if BX_COMPILER_GCC >= 70000 # define BX_FALLTHROUGH __attribute__( (fallthrough) )