gcc compat fix and warning suppression

by Joe Krahn <krahn AT niehs.nih.gov>
This commit is contained in:
Denis Vlasenko
2008-03-20 13:13:09 +00:00
parent 027271e5a9
commit 0f3a580c4f
2 changed files with 6 additions and 2 deletions

View File

@@ -52,7 +52,8 @@
# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
# define ATTRIBUTE_PACKED __attribute__ ((__packed__))
# define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m)))
# if __GNUC_PREREQ (3,0)
/* __NO_INLINE__: some gcc's do not honor inlining! :( */
# if __GNUC_PREREQ (3,0) && !defined(__NO_INLINE__)
# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
/* I've seen a toolchain where I needed __noinline__ instead of noinline */
# define NOINLINE __attribute__((__noinline__))