develooper Front page | perl.perl5.porters | Postings from May 2001

Re: Making perl with -Wall

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
May 24, 2001 15:07
Subject:
Re: Making perl with -Wall
Message ID:
20010524170529.C13243@chaos.wustl.edu
Not perhaps the most beautiful patch.

Change 10201 by jhi@alpha on 2001/05/24 21:02:30

	DB_File has its own attribute story.

Affected files ...

... //depot/perl/ext/DB_File/DB_File.xs#43 edit

Differences ...

==== //depot/perl/ext/DB_File/DB_File.xs#43 (text) ====
Index: perl/ext/DB_File/DB_File.xs
--- perl/ext/DB_File/DB_File.xs.~1~	Fri May 25 01:02:33 2001
+++ perl/ext/DB_File/DB_File.xs	Fri May 25 01:02:33 2001
@@ -124,6 +124,13 @@
 
 #undef __attribute__
 
+/* Since we dropped the gccish definition of __attribute__ we will want
+ * to redefine dNOOP, however (so that dTHX continues to work).  Yes,
+ * all this means that we can't do attribute checking on the DB_File,
+ * boo, hiss. */
+#undef  dNOOP
+#define dNOOP extern int Perl___notused
+
 /* If Perl has been compiled with Threads support,the symbol op will
    be defined here. This clashes with a field name in db.h, so get rid of it.
  */
End of Patch.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About