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

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


subramanya <preempt@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from subramanya <preempt@xxxxxxxxx>  2008-05-14 18:19:39 PDT ---
This error is overcome by changing lemonflex-tail.inc TEXT_FUNC (const char
*text) ->TEXT_FUNC (char *text)with reference to Rev  25172 
Thanks 

(In reply to comment #1)
> 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.