]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't apply function attributes to a functional parameter when
authorJulian Seward <jseward@acm.org>
Tue, 15 Mar 2011 08:05:12 +0000 (08:05 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 15 Mar 2011 08:05:12 +0000 (08:05 +0000)
being compiled by g++ 3.x, as that can't them.  Fixes #265762.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2109

VEX/pub/libvex.h

index 976de3abf54a0b55ba025c56d3a6755ed4d71f89..84a55a8368800a9f85467441d02f5c33642e2ce4 100644 (file)
@@ -394,15 +394,25 @@ typedef
 /* Initialise the library.  You must call this first. */
 
 extern void LibVEX_Init (
+
    /* failure exit function */
+#  if __cplusplus == 1 && __GNUC__ && __GNUC__ <= 3
+   /* g++ 3.x doesn't understand attributes on function parameters.
+      See #265762. */
+#  else
    __attribute__ ((noreturn))
+#  endif
    void (*failure_exit) ( void ),
+
    /* logging output function */
    void (*log_bytes) ( HChar*, Int nbytes ),
+
    /* debug paranoia level */
    Int debuglevel,
+
    /* Are we supporting valgrind checking? */
    Bool valgrind_support,
+
    /* Control ... */
    /*READONLY*/VexControl* vcon
 );