On Mon, 4 Apr 2011, Sean Farley wrote: > > > > ok '-x c++' is getting rid of the warning. > > > > asterix:/home/balay/junk>clang sizeof.c > > asterix:/home/balay/junk>clang++ sizeof.c > > clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior > > is deprecated > > asterix:/home/balay/junk>clang++ -x c++ sizeof.c > > asterix:/home/balay/junk> > > > Yes, and the other way works too: > > $ clang++ -x c sizeof.c
But why would I do that? The whole point of invoking 'clang++' is to to compile the code as 'C++' - not as 'C' Satish
