This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence warning during VC++/nmake build
authorSteve Hay <steve.m.hay@googlemail.com>
Wed, 7 Jan 2015 14:08:27 +0000 (14:08 +0000)
committerSteve Hay <steve.m.hay@googlemail.com>
Wed, 7 Jan 2015 14:08:27 +0000 (14:08 +0000)
"Use of uninitialized value $opt{"uselongdouble"} in string eq at
config_sh.PL line 202."

Only GCC supports USE_LONG_DOUBLE, so set the option to undef for VC++.

win32/Makefile

index 59f5fee..3d80676 100644 (file)
@@ -804,6 +804,7 @@ CFG_VARS    =                                       \
                "useithreads=$(USE_ITHREADS)"           \
                "usemultiplicity=$(USE_MULTI)"          \
                "use64bitint=$(USE_64_BIT_INT)"         \
                "useithreads=$(USE_ITHREADS)"           \
                "usemultiplicity=$(USE_MULTI)"          \
                "use64bitint=$(USE_64_BIT_INT)"         \
+               "uselongdouble=undef"                   \
                "uselargefiles=$(USE_LARGE_FILES)"      \
                "usesitecustomize=$(USE_SITECUST)"      \
                "LINK_FLAGS=$(LINK_FLAGS:"=\")"         \
                "uselargefiles=$(USE_LARGE_FILES)"      \
                "usesitecustomize=$(USE_SITECUST)"      \
                "LINK_FLAGS=$(LINK_FLAGS:"=\")"         \