summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorTorgeir Lerkerod <Torgeir.Lerkerod@gmail.com>2009-02-09 21:11:13 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-09 22:12:45 +0100
commit98a4327b19e83ffad4e0be7e8895fdbd9e48d49f (patch)
tree518eaa21adfaabd6225dc0e6a88a4ca5f21fb736 /pidl
parentcc51cbc862055975bcef016876662576b00e72ef (diff)
downloadsamba-98a4327b19e83ffad4e0be7e8895fdbd9e48d49f.tar.gz
samba-98a4327b19e83ffad4e0be7e8895fdbd9e48d49f.tar.bz2
samba-98a4327b19e83ffad4e0be7e8895fdbd9e48d49f.zip
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@gmail.com> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/idl.yp2
-rw-r--r--pidl/lib/Parse/Pidl/IDL.pm2
2 files changed, 2 insertions, 2 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);