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