[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-687-g98a4327

Jelmer Vernooij jelmer at samba.org
Mon Feb 9 21:13:21 GMT 2009


The branch, master has been updated
       via  98a4327b19e83ffad4e0be7e8895fdbd9e48d49f (commit)
      from  cc51cbc862055975bcef016876662576b00e72ef (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 98a4327b19e83ffad4e0be7e8895fdbd9e48d49f
Author: Torgeir Lerkerod <Torgeir.Lerkerod at gmail.com>
Date:   Mon Feb 9 21:11:13 2009 +0100

    Fix errornos assumption that all compilers are gcc
    
    When compiling Samba 4's IDL files buildsystem assumes that compiler
    knows about -xc, which is a gcc spesefic switch as this switch isn't
    needed on gcc either the flag was uneeded and can be removed. Thus no
    warnings on non gcc systems.
    
    Signed-off-by: Torgeir Lerkerod <Torgeir.Lerkerod at gmail.com>
    Signed-off-by: Jelmer Vernooij <jelmer at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 pidl/idl.yp                 |    2 +-
 pidl/lib/Parse/Pidl/IDL.pm  |    2 +-
 source4/build/pasn1/asn1.yp |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/pidl/idl.yp b/pidl/idl.yp
index d557590..7838420 100644
--- a/pidl/idl.yp
+++ b/pidl/idl.yp
@@ -490,7 +490,7 @@ sub parse_file($$)
 		$cpp = "cpp";
 	}
 	my $includes = join('',map { " -I$_" } @$incdirs);
-	my $data = `$cpp -D__PIDL__$includes -xc $filename`;
+	my $data = `$cpp -D__PIDL__$includes $filename`;
 	$/ = $saved_delim;
 
 	return parse_string($data, $filename);
diff --git a/pidl/lib/Parse/Pidl/IDL.pm b/pidl/lib/Parse/Pidl/IDL.pm
index 06d54fb..b2b5e3d 100644
--- a/pidl/lib/Parse/Pidl/IDL.pm
+++ b/pidl/lib/Parse/Pidl/IDL.pm
@@ -2525,7 +2525,7 @@ sub parse_file($$)
 		$cpp = "cpp";
 	}
 	my $includes = join('',map { " -I$_" } @$incdirs);
-	my $data = `$cpp -D__PIDL__$includes -xc $filename`;
+	my $data = `$cpp -D__PIDL__$includes $filename`;
 	$/ = $saved_delim;
 
 	return parse_string($data, $filename);
diff --git a/source4/build/pasn1/asn1.yp b/source4/build/pasn1/asn1.yp
index 7fc834f..24aef05 100644
--- a/source4/build/pasn1/asn1.yp
+++ b/source4/build/pasn1/asn1.yp
@@ -296,7 +296,7 @@ sub parse_asn1($$)
 	if (! defined $cpp) {
 		$cpp = "cpp"
 	}
-	my $data = `$cpp -xc $filename`;
+	my $data = `$cpp $filename`;
 	$/ = $saved_delim;
 
         $self->YYData->{INPUT} = $data;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list