From 98a4327b19e83ffad4e0be7e8895fdbd9e48d49f Mon Sep 17 00:00:00 2001 From: Torgeir Lerkerod Date: Mon, 9 Feb 2009 21:11:13 +0100 Subject: 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 Signed-off-by: Jelmer Vernooij --- pidl/idl.yp | 2 +- pidl/lib/Parse/Pidl/IDL.pm | 2 +- source4/build/pasn1/asn1.yp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pidl/idl.yp b/pidl/idl.yp index d557590494..7838420e3f 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 06d54fb4b5..b2b5e3d7b3 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 7fc834ff2b..24aef05b40 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; -- cgit