From 5f078cc8ff1f8af979d8852bf62fa259f41b1f93 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 14 Feb 2016 20:57:48 +0100 Subject: compilation errors on sparc sun studio 10 1. unused static inline functions are only removed at -xO4, otherwise test binaries will depend on various mysys symbols that they don't use. Link test with libmysys. 2. Sphinx - don't instantiate (explicitly) templates before they're defined. Or, rather, don't instantiate them explicitly at all. 3. GIS - don't use anonymous unions and structs. --- storage/sphinx/ha_sphinx.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storage') diff --git a/storage/sphinx/ha_sphinx.cc b/storage/sphinx/ha_sphinx.cc index 822f6956d11..9edf6ea6570 100644 --- a/storage/sphinx/ha_sphinx.cc +++ b/storage/sphinx/ha_sphinx.cc @@ -598,8 +598,10 @@ protected: void SendFloat ( float v ) { SendDword ( sphF2DW(v) ); } }; +#ifdef HAVE_EXPLICIT_TEMPLATE_INSTANTIATION template int CSphSEQuery::ParseArray ( uint32 **, const char * ); template int CSphSEQuery::ParseArray ( longlong **, const char * ); +#endif ////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.1