summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorDenys Vlasenko2010-02-04 15:00:15 +0100
committerDenys Vlasenko2010-02-04 15:00:15 +0100
commit98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch)
tree2d9c07825697cd7c6e96647ff0992dce4d4a0115 /include/platform.h
parent1821d188ca674b42bf0f384b0c2332ff95701bba (diff)
downloadbusybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.zip
busybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.gz
*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index b58b149..ab4402e 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -100,6 +100,13 @@
# define EXTERNALLY_VISIBLE
#endif
+/* At 4.4 gcc become much more anal about this, need to use "aliased" types */
+#if __GNUC_PREREQ(4,4)
+# define FIX_ALIASING __attribute__((__may_alias__))
+#else
+# define FIX_ALIASING
+#endif
+
/* We use __extension__ in some places to suppress -pedantic warnings
about GCC extensions. This feature didn't work properly before
gcc 2.8. */