You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/11/27 01:07:00 UTC
[lucy-commits] svn commit: r1206646 - in /incubator/lucy/trunk: charmonizer/Makefile.MSVC
clownfish/buildlib/Clownfish/Build.pm
devel/bin/gen_charmonizer_makefiles.pl perl/buildlib/Lucy/Build.pm
Author: marvin
Date: Sun Nov 27 00:06:58 2011
New Revision: 1206646
URL: http://svn.apache.org/viewvc?rev=1206646&view=rev
Log:
Turn off more stupid MSVC warnings.
Turn off deprecation warnings for POSIX functions with
-D_SCL_SECURE_NO_WARNINGS.
Modified:
incubator/lucy/trunk/charmonizer/Makefile.MSVC
incubator/lucy/trunk/clownfish/buildlib/Clownfish/Build.pm
incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl
incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm
Modified: incubator/lucy/trunk/charmonizer/Makefile.MSVC
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/Makefile.MSVC?rev=1206646&r1=1206645&r2=1206646&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/Makefile.MSVC (original)
+++ incubator/lucy/trunk/charmonizer/Makefile.MSVC Sun Nov 27 00:06:58 2011
@@ -17,7 +17,7 @@
CC= cl
DEFS=
-CFLAGS= -Isrc $(DEFS) -nologo -D_CRT_SECURE_NO_WARNINGS
+CFLAGS= -Isrc $(DEFS) -nologo -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
PROGNAME= charmonize.exe
TESTS= TestDirManip.exe TestFuncMacro.exe TestHeaders.exe TestIntegers.exe TestLargeFiles.exe TestUnusedVars.exe TestVariadicMacros.exe
Modified: incubator/lucy/trunk/clownfish/buildlib/Clownfish/Build.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/buildlib/Clownfish/Build.pm?rev=1206646&r1=1206645&r2=1206646&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/buildlib/Clownfish/Build.pm (original)
+++ incubator/lucy/trunk/clownfish/buildlib/Clownfish/Build.pm Sun Nov 27 00:06:58 2011
@@ -60,6 +60,7 @@ sub extra_ccflags {
# Compile as C++ under MSVC. Turn off stupid warnings, too.
if ( $self->config('cc') =~ /^cl\b/ ) {
$extra_ccflags .= '/TP -D_CRT_SECURE_NO_WARNINGS ';
+ $extra_ccflags .= '-D_SCL_SECURE_NO_WARNINGS ';
}
if ( defined $gcc_version ) {
Modified: incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl?rev=1206646&r1=1206645&r2=1206646&view=diff
==============================================================================
--- incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl (original)
+++ incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl Sun Nov 27 00:06:58 2011
@@ -231,12 +231,14 @@ BEGIN { our @ISA = qw( Charmonizer::Buil
sub new {
my $class = shift;
+ my $flags = '-nologo -D_CRT_SECURE_NO_WARNINGS '
+ . '-D_SCL_SECURE_NO_WARNINGS';
return $class->SUPER::new(
filename => 'Makefile.MSVC',
obj_ext => '.obj',
exe_ext => '.exe',
cc => 'cl',
- extra_cflags => '-nologo -D_CRT_SECURE_NO_WARNINGS',
+ extra_cflags => $flags,
extra_clean => '*.pdb',
@_
);
Modified: incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm?rev=1206646&r1=1206645&r2=1206646&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm Sun Nov 27 00:06:58 2011
@@ -93,7 +93,7 @@ sub extra_ccflags {
}
elsif ( $self->config('cc') =~ /^cl\b/ ) {
# Compile as C++ under MSVC.
- return '/TP ';
+ return '/TP -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS ';
}
}