Commit ad5d14ec authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #15701 from alalek:issue_15691

parents bce65311 823884b0
...@@ -112,6 +112,13 @@ bool isAlignedAllocationEnabled() ...@@ -112,6 +112,13 @@ bool isAlignedAllocationEnabled()
} }
return useMemalign; return useMemalign;
} }
// do not use variable directly, details: https://github.com/opencv/opencv/issues/15691
static const bool g_force_initialization_memalign_flag
#if defined __GNUC__
__attribute__((unused))
#endif
= isAlignedAllocationEnabled();
#endif #endif
#ifdef OPENCV_ALLOC_ENABLE_STATISTICS #ifdef OPENCV_ALLOC_ENABLE_STATISTICS
......
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