Commit 07c5c6b3 authored by Marius Gerbershagen's avatar Marius Gerbershagen
Browse files

ecl_process_env_unsafe: don't mark as __attribute__((const))

This can cause the C compiler to optimize away multiple calls to this
function, which makes the ECL_WITH_LISP_FPE macro fail.
parent 793e2e93
......@@ -159,7 +159,7 @@ struct ecl_interrupt_struct {
#if defined(ECL_THREADS)
# define cl_env (*ecl_process_env())
extern ECL_API cl_env_ptr ecl_process_env(void) __attribute__((const));
extern ECL_API cl_env_ptr ecl_process_env_unsafe(void) __attribute__((const));
extern ECL_API cl_env_ptr ecl_process_env_unsafe(void);
# define cl_env (*cl_env_p)
# define ecl_process_env() cl_env_p
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment