develooper Front page | perl.perl6.internals | Postings from May 2008

[perl #53682] Cage cleaning: Visual Studio compiler for parrot

From:
William Herrera
Date:
May 4, 2008 04:10
Subject:
[perl #53682] Cage cleaning: Visual Studio compiler for parrot
# New Ticket Created by  "William Herrera" 
# Please include the string:  [perl #53682]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53682 >


The MS C compiler produces numerous warnings about "not all paths return a
value" or "no return value" when Parrot throws an exception in many of the
functions.  This produces a fair amount of noise when compiling with
warnings turned on.  If the following is added to compiler.h the warnings
are much diminished:

#ifdef _MSC_VER
    /* turn off MSC warnings when exceptions prevent normal value return */
#  pragma warning (disable : 4715)
#  pragma warning (disable : 4716)
#endif

I have attached a version of compiler.h with the addition as well.

I would be happy to fix some of the remaining issues, which are mainly void
pointer conversion warnings and local variable initialization issues, if you
would like

--Bill




Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About