We are building an OpenCV framework from the source code and integrating it with our framework.
But when I use our framework in the sample app, I see below warnings from the OpenCV files
ld: warning: direct access in function ‘___cxx_global_var_init’ from file ‘…/XXX/XXX.framework/XXX(miniflann.o)’ to global weak symbol ‘guard variable for cvflann::anyimpl::SinglePolicycvflann::anyimpl::empty_any::policy’ from file ‘…/XXXX/XXXX.framework/XXX(Blur.o)’ means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
We have observed many warnings like above, Could you suggest how to suppress these warnings?