Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 2545] Lemon parser fails to compile due to MSVC++ reportin

Date: Wed, 14 May 2008 17:55:59 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2545


Guy Harris <guy@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Generating Code returned    |Lemon parser fails to
                   |error due to no object file |compile due to MSVC++
                   |                            |reporting constness
                   |                            |disagreement




--- Comment #1 from Guy Harris <guy@xxxxxxxxxxxx>  2008-05-14 17:55:58 PDT ---
The real error - or perhaps "error" - is

    C:\wireshark-1.0.99-SVN-25290\tools\lemon\lemonflex-tail.inc(47) : warning
C409
: 'function' : different 'const' qualifiers

I seem to remember that MSVC++, at one point, got completely confused about
const, reporting that two items that, according to that dreary old document
ANSI X3.159-1989 "Programming Language C", had the same level of constness had
different const qualifiers.

"Fixing" the problem so that MSVC++ shut up merely meant that, instead, GCC
complained - and given that, as far as I can tell, GCC was right and MSVC++ was
wrong, I didn't bother applying the "fix".

I'll see whether this is the same problem.  If so, we may have to see whether
there's a #pragma or something such as that to tell MSVC++ to shut up.


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