Wireshark-bugs: [Wireshark-bugs] [Bug 2493] Wireshark compile errors for cygwin flex (v 2.5.35)

Date: Wed, 23 Apr 2008 11:30:35 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2493





--- Comment #10 from Bill Meier <wmeier@xxxxxxxxxxx>  2008-04-23 11:30:31 GMT ---
1. --nounistd seems to work AOK: i.e.: no compilation errors with VC6.

2. re: the "wrap" related errors

   The following compiles AOK with GCC;
   It fails when compiling with VC6:
     foo.c(4) : warning C4003: not enough actual parameters for macro 'foo'

    #define foo(n) 1
    main() {
        if (foo()) {
           ;
        }
    }

    As mentioned above, the code similar to the above generated by flex 
    would seem to be incorrect; I've no knowledge of (f)lex so I'll leave
    it to others to decide (and submit a bug report if appropriate).

    I'd hate to have to change all the .l files as mentioned previously 
    to do a workaround for this; 
    Does VC6 allow suppression of particular errors ? I'll have to do
    some more research.





-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.