Fix errornos assumption that all compilers are gcc
authorTorgeir Lerkerod <Torgeir.Lerkerod@gmail.com>
Mon, 9 Feb 2009 20:11:13 +0000 (21:11 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 9 Feb 2009 21:12:45 +0000 (22:12 +0100)
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>
pidl/idl.yp
pidl/lib/Parse/Pidl/IDL.pm
source4/build/pasn1/asn1.yp

index d557590494edcfff808d5b22c9920813fc281bf4..7838420e3fc924aed7cd369901607ff634ae91d0 100644 (file)
@@ -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);
index 06d54fb4b5f524905f79523af4a359b619112025..b2b5e3d7b362c358581bebaf3ba72924d5aa09ca 100644 (file)
@@ -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);
index 7fc834ff2b716fb545029042761304a1b7d65d58..24aef05b4034d26b114dd81c42788699a9c791ba 100644 (file)
@@ -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;