summaryrefslogtreecommitdiff
path: root/sql/spatial.h
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-14 16:39:40 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-14 16:39:40 -0300
commitd7944b621e895383482792df3b8aa3eed6ee5f6d (patch)
tree05485c186839ac3c248a3e0355728341d0f397d4 /sql/spatial.h
parentf317d3a6fb413cfc04c1ed005df8e859664e41d5 (diff)
downloadmariadb-git-d7944b621e895383482792df3b8aa3eed6ee5f6d.tar.gz
Bug#42733: Type-punning warnings when compiling MySQL --
strict aliasing violations. Post-merge fix: include my_compiler.h before my_attribute.h as the latter will undef __attribute__ if the compiler is not GCC. Based on the compiler version, in my_compiler.h we know for sure whether the aligned attribute is supported. Furthermore, undefining attribute might cause bugs if some system header uses it. include/my_compiler.h: Drop aligned attribute support from Sun Studio C++ compiler as its not clear exactly which version of it supports the attribute.
Diffstat (limited to 'sql/spatial.h')
-rw-r--r--sql/spatial.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/spatial.h b/sql/spatial.h
index 67edc077e04..f778acd6c34 100644
--- a/sql/spatial.h
+++ b/sql/spatial.h
@@ -16,8 +16,6 @@
#ifndef _spatial_h
#define _spatial_h
-#include <my_compiler.h>
-
#ifdef HAVE_SPATIAL
const uint SRID_SIZE= 4;