Ignore __attribute__
authorKen Raeburn <raeburn@mit.edu>
Fri, 29 Jun 2007 00:28:32 +0000 (00:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 29 Jun 2007 00:28:32 +0000 (00:28 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19651 dc483132-0cff-0310-8789-dd5450dbe970

src/util/def-check.pl

index 17327df245f6279cc13c72010e41bdc06df2198f..a6dd210f5e83d5654fd1b967b287a6704550fc2f 100644 (file)
@@ -142,6 +142,11 @@ while (! $h->eof()) {
        s/ *\([^\(\)]*\)//g;
        goto Striparg;
     }
+    # Also strip out attributes, or what's left over of them.
+    if (/__attribute__/) {
+       s/[ \t]*__attribute__[ \t]*//g;
+       goto Striparg;
+    }
     # replace return type etc with one token indicating calling convention
     if (/CALLCONV/) {
        if (/\bKRB5_CALLCONV_WRONG\b/) {