[petsc-dev] clang++ warning about C++ input with .c files

Satish Balay balay at mcs.anl.gov
Wed Mar 9 14:03:56 CST 2016


On Wed, 9 Mar 2016, Lisandro Dalcin wrote:

> clang: warning: treating 'c' input as 'c++' when in C++ mode, this
> behavior is deprecated
> 
> These warnings can be silenced passing the flag "-x c++" to the compiler.
> 
> Any downsides to consider?

I think it will treat even '.o' as c++ source - so one has to be careful with using it..

i.e could be used perhaps via CXXCPPFLAGS - but not CFLAGS

Satish



More information about the petsc-dev mailing list