Hello,

the __stdcall__ and __cdecl__ attributes are used a lot in Wine and are
driving sparse into printing "warning: too many warnings"

Changelog:
Michael Stefaniuc <[EMAIL PROTECTED]>
- add handling for __stdcall__ and __cdecl__ attributes aka ignore them
  for now


diff -urp sparse.orig/ident-list.h sparse/ident-list.h
--- sparse.orig/ident-list.h    2005-04-19 00:22:46.000000000 +0200
+++ sparse/ident-list.h 2005-04-18 23:54:38.000000000 +0200
@@ -54,6 +54,7 @@ IDENT(syscall_linkage); IDENT(visibility
 IDENT(bitwise);
 IDENT(model); IDENT(__model__);
 IDENT(__format_arg__);
+IDENT(__cdecl__); IDENT(__stdcall__);
 
 /* Preprocessor idents */
 __IDENT(pragma_ident, "__pragma__", 0);
diff -urp sparse.orig/parse.c sparse/parse.c
--- sparse.orig/parse.c 2005-04-19 00:22:46.000000000 +0200
+++ sparse/parse.c      2005-04-19 00:18:47.000000000 +0200
@@ -471,6 +471,9 @@ static const char * handle_attribute(str
        if (attribute == &model_ident ||
            attribute == &__model___ident)
                return NULL;
+       if (attribute == &__cdecl___ident ||
+           attribute == &__stdcall___ident)
+               return NULL;
 
        return "unknown attribute";
 }
        
-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
Sr. Network Engineer            Fax.: +49-711-96437-111
Red Hat GmbH                    Email: [EMAIL PROTECTED]
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart

Attachment: pgpbPvKhigKlD.pgp
Description: PGP signature

Reply via email to