[CLN-list] CL_INLINE: shut up compiler warning due to __attribute__((flatten))

Alexei Sheplyakov varg at theor.jinr.ru
Mon Feb 11 06:52:42 CET 2008


Dear Richard,

On Sat, Feb 09, 2008 at 06:04:33PM +0100, Richard B. Kreckel wrote:
> I've committed a feature-based test for that attribute to avoid the warning.

Just a small correction:

diff --git a/src/base/cl_maybe_inline.h b/src/base/cl_maybe_inline.h
index 4f7a982..9d185f4 100644
--- a/src/base/cl_maybe_inline.h
+++ b/src/base/cl_maybe_inline.h
@@ -102,7 +102,7 @@
  *    a function.
  * 2. It's ignored if the optimization is switched off.
  */
-#if defined(__GNUC__) && defined(CL_ATTRIBUTE_FLATTEN)
+#if defined(__GNUC__) && defined(CL_HAVE_ATTRIBUTE_FLATTEN)
 #define CL_FLATTEN __attribute__((flatten))
 #else
 #define CL_FLATTEN


 Best regards,
 	Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/cln-list/attachments/20080211/96acfb35/attachment.sig 


More information about the CLN-list mailing list